aboutsummaryrefslogtreecommitdiff
path: root/pcap-snit.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-06-30 01:42:49 -0700
committerGuy Harris <guy@alum.mit.edu>2016-06-30 01:42:49 -0700
commit985f531bfaf50ebad71c512bf6c109f0bae6c443 (patch)
tree6c16847464356e09d6e0abc0402e22e370add61d /pcap-snit.c
parentd6998249084df8dc1131b8dd3cbce0d65a075b4f (diff)
Don't have pcap_create_common() set opt.device.
Instead, have pcap_create() do so. Also have pcap_create() on Windows handle converting a little-endian UCS-2/UTF-16 string to ASCII.
Diffstat (limited to 'pcap-snit.c')
-rw-r--r--pcap-snit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pcap-snit.c b/pcap-snit.c
index f7e70ed7..ae8dd8bd 100644
--- a/pcap-snit.c
+++ b/pcap-snit.c
@@ -431,11 +431,11 @@ pcap_activate_snit(pcap_t *p)
}
pcap_t *
-pcap_create_interface(const char *device, char *ebuf)
+pcap_create_interface(char *ebuf)
{
pcap_t *p;
- p = pcap_create_common(device, ebuf, sizeof (struct pcap_snit));
+ p = pcap_create_common(ebuf, sizeof (struct pcap_snit));
if (p == NULL)
return (NULL);