From 985f531bfaf50ebad71c512bf6c109f0bae6c443 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Thu, 30 Jun 2016 01:42:49 -0700 Subject: 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. --- pcap-sita.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pcap-sita.c') diff --git a/pcap-sita.c b/pcap-sita.c index 6ceb38d9..123700d3 100644 --- a/pcap-sita.c +++ b/pcap-sita.c @@ -1014,10 +1014,10 @@ static int pcap_activate_sita(pcap_t *handle) { return 0; } -pcap_t *pcap_create_interface(const char *device, char *ebuf) { +pcap_t *pcap_create_interface(char *ebuf) { pcap_t *p; - p = pcap_create_common(device, ebuf, 0); + p = pcap_create_common(ebuf, 0); if (p == NULL) return (NULL); -- cgit v1.2.1