From e0d0d1858cbe351718c530df062645faf60f6a17 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Thu, 11 Sep 2014 13:46:02 +0200 Subject: 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 --- netsniff-ng.c | 3 +-- 1 file changed, 1 insertion(+), 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); -- cgit v1.2.3-54-g00ecf