aboutsummaryrefslogtreecommitdiff
path: root/pcap-linux.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-08-21 11:56:34 -0700
committerGuy Harris <guy@alum.mit.edu>2017-08-21 11:56:34 -0700
commit934a34709d93d201cf2bbfe4c75c27920451ea38 (patch)
treeaba9ab094a4697c32e53b293c5d8e16c28d85855 /pcap-linux.c
parentc358ef5103c205c3f7aa55d42be089e3ab894bae (diff)
downloadlibpcap-934a34709d93d201cf2bbfe4c75c27920451ea38.tar.gz
Consistently use handle as the pointer to the pcap_t.
Use handle as the pcap_t pointer in all functions.
Diffstat (limited to 'pcap-linux.c')
-rw-r--r--pcap-linux.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/pcap-linux.c b/pcap-linux.c
index ee4901c7..86350bc4 100644
--- a/pcap-linux.c
+++ b/pcap-linux.c
@@ -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;
/*