From: Jakub Zawadzki Date: Tue, 14 Jun 2011 17:05:57 +0000 (-0700) Subject: Fix typos in the Bluetooth capture code. X-Git-Tag: libpcap-1.2.1~45 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/39d457f66bdb3f60c42dc599ab63f64caff5b176 Fix typos in the Bluetooth capture code. The "set the buffer size" code check for a zero, rather than a non-zero, opt.buffer_size when deciding whether to explicitly set the buffer size. Fix a typo in a comment. Reviewed-By: Guy Harris --- diff --git a/pcap-bt-linux.c b/pcap-bt-linux.c index 55c1b6a1..f9f128ac 100644 --- a/pcap-bt-linux.c +++ b/pcap-bt-linux.c @@ -237,7 +237,7 @@ bt_activate(pcap_t* handle) goto close_fail; } - if (handle->opt.buffer_size == 0) { + if (handle->opt.buffer_size != 0) { /* * Set the socket buffer size to the specified value. */ @@ -342,7 +342,7 @@ bt_stats_linux(pcap_t *handle, struct pcap_stat *stats) struct hci_dev_stats * s = &dev_info.stat; dev_info.dev_id = handle->md.ifindex; - /* ingnore eintr */ + /* ignore eintr */ do { ret = ioctl(handle->fd, HCIGETDEVINFO, (void *)&dev_info); } while ((ret == -1) && (errno == EINTR));