aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2010-01-09 18:25:22 -0800
committerGuy Harris <guy@alum.mit.edu>2010-01-09 18:25:22 -0800
commitfc03e2cbb69f94efdda0ee05206ad9336b35844f (patch)
tree324a96424ded5e851a4007a4e864782bc7222409
parented73055294647b82419bbcc002474823755cc84b (diff)
Squelch some (valid) compiler warnings.
-rw-r--r--sf-pcap-ng.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sf-pcap-ng.c b/sf-pcap-ng.c
index 7397203..54a7363 100644
--- a/sf-pcap-ng.c
+++ b/sf-pcap-ng.c
@@ -267,7 +267,7 @@ read_block(FILE *fp, pcap_t *p, struct block_cursor *cursor, char *errbuf)
snprintf(errbuf, PCAP_ERRBUF_SIZE,
"block in pcap-ng dump file has a length of %u < %lu",
bhdr.total_length,
- sizeof(struct block_header) + sizeof(struct block_trailer));
+ (unsigned long)(sizeof(struct block_header) + sizeof(struct block_trailer)));
return (-1);
}
@@ -587,7 +587,7 @@ pcap_ng_check_header(pcap_t *p, bpf_u_int32 magic, FILE *fp, char *errbuf)
snprintf(errbuf, PCAP_ERRBUF_SIZE,
"Section Header Block in pcap-ng dump file has a length of %u < %lu",
total_length,
- sizeof(*bhdrp) + sizeof(*shbp) + sizeof(struct block_trailer));
+ (unsigned long)(sizeof(*bhdrp) + sizeof(*shbp) + sizeof(struct block_trailer)));
return (-1);
}