]> The Tcpdump Group git mirrors - libpcap/commitdiff
Consistently use handle as the pointer to the pcap_t.
authorGuy Harris <[email protected]>
Mon, 21 Aug 2017 18:56:34 +0000 (11:56 -0700)
committerGuy Harris <[email protected]>
Mon, 21 Aug 2017 18:56:34 +0000 (11:56 -0700)
Use handle as the pcap_t pointer in all functions.

pcap-linux.c

index ee4901c7d93dbbf3c2e3e7d0351bce9ce3687dbe..86350bc434a32ab07844cd782b54b08f5a2191b3 100644 (file)
@@ -4494,24 +4494,24 @@ pcap_cleanup_linux_mmap( pcap_t *handle )
 
 
 static int
-pcap_getnonblock_mmap(pcap_t *p)
+pcap_getnonblock_mmap(pcap_t *handle)
 {
-       struct pcap_linux *handlep = p->priv;
+       struct pcap_linux *handlep = handle->priv;
 
        /* use negative value of timeout to indicate non blocking ops */
        return (handlep->timeout<0);
 }
 
 static int
-pcap_setnonblock_mmap(pcap_t *p, int nonblock)
+pcap_setnonblock_mmap(pcap_t *handle, int nonblock)
 {
-       struct pcap_linux *handlep = p->priv;
+       struct pcap_linux *handlep = handle->priv;
 
        /*
         * Set the file descriptor to non-blocking mode, as we use
         * it for sending packets.
         */
-       if (pcap_setnonblock_fd(p, nonblock) == -1)
+       if (pcap_setnonblock_fd(handle, nonblock) == -1)
                return -1;
 
        /*