From: Guy Harris Date: Tue, 14 Apr 2020 18:12:37 +0000 (-0700) Subject: bh_caplen and bh_hdrlen are unsigned; assign their values to unsigned variables. X-Git-Tag: libpcap-1.10-bp~218 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/6d69b2da0d6ee4fe462417c1abc297a1c682a0eb bh_caplen and bh_hdrlen are unsigned; assign their values to unsigned variables. --- diff --git a/pcap-npf.c b/pcap-npf.c index 2eae56b3..9f49794e 100644 --- a/pcap-npf.c +++ b/pcap-npf.c @@ -567,7 +567,7 @@ pcap_read_npf(pcap_t *p, int cnt, pcap_handler callback, u_char *user) #define bhp ((struct bpf_hdr *)bp) ep = bp + cc; for (;;) { - register int caplen, hdrlen; + register u_int caplen, hdrlen; /* * Has "pcap_breakloop()" been called?