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