diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2014-09-11 13:46:02 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2014-09-11 13:46:02 +0200 |
commit | e0d0d1858cbe351718c530df062645faf60f6a17 (patch) | |
tree | e0126b546dcd2dbd6f2fc85cc1467a49186915f1 | |
parent | b712702a98f40656fd7001be31d61b83bee79b97 (diff) |
netsniff-ng: Remvoe unnecessary cast to void *
The iov_base member of struct iovec is already void *, so there is no
need to cast it.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r-- | netsniff-ng.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/netsniff-ng.c b/netsniff-ng.c index a9fbaff..88c48fb 100644 --- a/netsniff-ng.c +++ b/netsniff-ng.c @@ -952,8 +952,7 @@ static void recv_only_or_dump(struct ctx *ctx) while (likely(sigint == 0)) { #ifdef HAVE_TPACKET3 - while (user_may_pull_from_rx_block((pbd = (void *) - rx_ring.frames[it].iov_base))) { + while (user_may_pull_from_rx_block((pbd = rx_ring.frames[it].iov_base))) { walk_t3_block(pbd, ctx, sock, &fd, &frame_count); kernel_may_pull_from_rx_block(pbd); |