diff options
author | Guy Harris <guy@alum.mit.edu> | 2016-06-30 01:42:49 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2016-06-30 01:42:49 -0700 |
commit | 985f531bfaf50ebad71c512bf6c109f0bae6c443 (patch) | |
tree | 6c16847464356e09d6e0abc0402e22e370add61d /pcap-sita.c | |
parent | d6998249084df8dc1131b8dd3cbce0d65a075b4f (diff) | |
download | libpcap-985f531bfaf50ebad71c512bf6c109f0bae6c443.tar.gz |
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-sita.c')
-rw-r--r-- | pcap-sita.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |