X-Git-Url: https://git.tcpdump.org/libpcap/blobdiff_plain/735f1f9d3318693f0096be4198d34e9ac0985777..cc3ca65d6519faf3a0e4609b5150757c14af36e9:/pcap-bt-linux.c diff --git a/pcap-bt-linux.c b/pcap-bt-linux.c index a398b267..4452fe44 100644 --- a/pcap-bt-linux.c +++ b/pcap-bt-linux.c @@ -171,7 +171,7 @@ bt_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_bt)); + p = pcap_create_common(ebuf, sizeof (struct pcap_bt)); if (p == NULL) return (NULL); @@ -190,11 +190,11 @@ bt_activate(pcap_t* handle) int err = PCAP_ERROR; /* get bt interface id */ - if (sscanf(handle->opt.source, BT_IFACE"%d", &dev_id) != 1) + if (sscanf(handle->opt.device, BT_IFACE"%d", &dev_id) != 1) { pcap_snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "Can't get Bluetooth device index from %s", - handle->opt.source); + handle->opt.device); return PCAP_ERROR; }