From df1d1c89542554db5e184372963b3dfbef3d2007 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 9 Aug 2013 11:32:02 +0200 Subject: netsniff-ng: Fix compiler warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix the following compiler warning that occurs when building with "-W -Wall -Wextra" by introducing a cast: netsniff-ng.c: In function ‘walk_t3_block’: netsniff-ng.c:841:8: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] Signed-off-by: Tobias Klauser --- netsniff-ng.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netsniff-ng.c b/netsniff-ng.c index 1c0b1eb..8e8b263 100644 --- a/netsniff-ng.c +++ b/netsniff-ng.c @@ -838,7 +838,7 @@ static void walk_t3_block(struct block_desc *pbd, struct ctx *ctx, ret = __pcap_io->write_pcap(*fd, &phdr, ctx->magic, packet, pcap_get_length(&phdr, ctx->magic)); - if (unlikely(ret != pcap_get_total_length(&phdr, ctx->magic))) + if (unlikely(ret != (int) pcap_get_total_length(&phdr, ctx->magic))) panic("Write error to pcap!\n"); } -- cgit v1.2.3-54-g00ecf