summaryrefslogtreecommitdiff
path: root/netsniff-ng.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2013-08-09 11:32:02 +0200
committerTobias Klauser <tklauser@distanz.ch>2013-08-09 11:32:02 +0200
commitdf1d1c89542554db5e184372963b3dfbef3d2007 (patch)
treef1e5c2915abef9ea1bbc60e06dc2a09fa11c065c /netsniff-ng.c
parent15ef4943912f53d784c6150fa9fc368809a0d221 (diff)
netsniff-ng: Fix compiler warning
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 <tklauser@distanz.ch>
Diffstat (limited to 'netsniff-ng.c')
-rw-r--r--netsniff-ng.c2
1 files changed, 1 insertions, 1 deletions
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");
}