]> The Tcpdump Group git mirrors - libpcap/commitdiff
refine the previous change to fix Linux builds
authorDenis Ovsienko <[email protected]>
Thu, 30 Jun 2016 09:34:53 +0000 (10:34 +0100)
committerDenis Ovsienko <[email protected]>
Thu, 30 Jun 2016 09:34:53 +0000 (10:34 +0100)
pcap-can-linux.c
pcap-netfilter-linux.c
pcap-usb-linux.c

index ef7ca35b471ce4b8d41dbca09afde3f680feef1e..b3a0e414cf35b30bb83a1902fc7c83e05ccff2ad 100644 (file)
@@ -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);
 
index 224a9f686e1aa66f684f83f4ba00b041a5b93f7d..b1579141168aca8f568dd0d4b9d9df8cae73d5b6 100644 (file)
@@ -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);
 
index 8201209f39aae4465965d00fa8c1f2ae19409a4f..c1e83ae7d8adb7b90639b2f115e870acb839fc7c 100644 (file)
@@ -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);