]> The Tcpdump Group git mirrors - libpcap/commitdiff
Squelch a warning.
authorGuy Harris <[email protected]>
Fri, 12 Aug 2016 01:13:59 +0000 (18:13 -0700)
committerGuy Harris <[email protected]>
Fri, 12 Aug 2016 01:13:59 +0000 (18:13 -0700)
The variable holds a size; make it a size_t.

fad-gifc.c

index 8d6bb63e6925bd3009a683d5d716c899ae1f2e65..1b24af2929853f59efbb97fb4eb50917934f45c3 100644 (file)
@@ -138,7 +138,7 @@ pcap_findalldevs_interfaces(pcap_if_t **alldevsp, char *errbuf,
        pcap_if_t *devlist = NULL;
        register int fd;
        register struct ifreq *ifrp, *ifend, *ifnext;
-       int n;
+       size_t n;
        struct ifconf ifc;
        char *buf = NULL;
        unsigned buf_size;