]> The Tcpdump Group git mirrors - libpcap/commitdiff
bh_caplen and bh_hdrlen are unsigned; assign their values to unsigned variables.
authorGuy Harris <[email protected]>
Tue, 14 Apr 2020 18:12:37 +0000 (11:12 -0700)
committerGuy Harris <[email protected]>
Tue, 14 Apr 2020 18:12:37 +0000 (11:12 -0700)
pcap-npf.c

index 2eae56b37bc6e25df316dd80e87188cd2a393a6d..9f49794e384fdf6c05cfe16c99f39e34d97d4b04 100644 (file)
@@ -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?