summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);