dect
/
libpcap
Archived
13
0
Fork 0

Squelch some (valid) compiler warnings.

This commit is contained in:
Guy Harris 2010-01-09 18:25:22 -08:00
parent ed73055294
commit fc03e2cbb6
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}