aboutsummaryrefslogtreecommitdiffstats
path: root/pcap-usb-linux.c
diff options
context:
space:
mode:
authorguy <guy>2008-12-23 20:55:28 +0000
committerguy <guy>2008-12-23 20:55:28 +0000
commita6693354156136b101601f91379149aec6b97da9 (patch)
tree8a41ca616dde6f9c6d11b89596566a6ca7fe578d /pcap-usb-linux.c
parent5e3edce42f0dc499269ed30313eb5b5810a5723e (diff)
probe_devices() returns void (if calls fail, we just drive on); don't
try to return a value from it.
Diffstat (limited to 'pcap-usb-linux.c')
-rw-r--r--pcap-usb-linux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pcap-usb-linux.c b/pcap-usb-linux.c
index 9912346..4eda913 100644
--- a/pcap-usb-linux.c
+++ b/pcap-usb-linux.c
@@ -34,7 +34,7 @@
*/
#ifndef lint
static const char rcsid[] _U_ =
- "@(#) $Header: /tcpdump/master/libpcap/pcap-usb-linux.c,v 1.31 2008-12-23 20:49:26 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/libpcap/pcap-usb-linux.c,v 1.32 2008-12-23 20:55:28 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@@ -228,7 +228,7 @@ probe_devices(int bus)
snprintf(buf, sizeof buf, "/dev/bus/usb/%03d", bus);
dir = opendir(buf);
if (!dir)
- return 0;
+ return;
while ((ret >= 0) && ((data = readdir(dir)) != 0)) {
int fd;
char* name = data->d_name;