summaryrefslogtreecommitdiff
path: root/netsniff-ng.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2014-09-11 13:46:02 +0200
committerTobias Klauser <tklauser@distanz.ch>2014-09-11 13:46:02 +0200
commite0d0d1858cbe351718c530df062645faf60f6a17 (patch)
treee0126b546dcd2dbd6f2fc85cc1467a49186915f1 /netsniff-ng.c
parentb712702a98f40656fd7001be31d61b83bee79b97 (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>
Diffstat (limited to 'netsniff-ng.c')
-rw-r--r--netsniff-ng.c3
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);