From: Denis Ovsienko Date: Thu, 30 Jun 2016 09:34:53 +0000 (+0100) Subject: refine the previous change to fix Linux builds X-Git-Tag: libpcap-1.8.0-bp~17 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/f01c8d38255685c7a3d8a506236d673bb147f2ed refine the previous change to fix Linux builds --- diff --git a/pcap-can-linux.c b/pcap-can-linux.c index ef7ca35b..b3a0e414 100644 --- a/pcap-can-linux.c +++ b/pcap-can-linux.c @@ -133,7 +133,7 @@ can_create(const char *device, char *ebuf, int *is_ours) /* OK, it's probably ours. */ *is_ours = 1; - p = pcap_create_common(device, ebuf, sizeof (struct pcap_can)); + p = pcap_create_common(ebuf, sizeof (struct pcap_can)); if (p == NULL) return (NULL); diff --git a/pcap-netfilter-linux.c b/pcap-netfilter-linux.c index 224a9f68..b1579141 100644 --- a/pcap-netfilter-linux.c +++ b/pcap-netfilter-linux.c @@ -626,7 +626,7 @@ netfilter_create(const char *device, char *ebuf, int *is_ours) /* OK, it's probably ours. */ *is_ours = 1; - p = pcap_create_common(device, ebuf, sizeof (struct pcap_netfilter)); + p = pcap_create_common(ebuf, sizeof (struct pcap_netfilter)); if (p == NULL) return (NULL); diff --git a/pcap-usb-linux.c b/pcap-usb-linux.c index 8201209f..c1e83ae7 100644 --- a/pcap-usb-linux.c +++ b/pcap-usb-linux.c @@ -368,7 +368,7 @@ usb_create(const char *device, char *ebuf, int *is_ours) /* OK, it's probably ours. */ *is_ours = 1; - p = pcap_create_common(device, ebuf, sizeof (struct pcap_usb_linux)); + p = pcap_create_common(ebuf, sizeof (struct pcap_usb_linux)); if (p == NULL) return (NULL);