Skip to content

Commit

Permalink
probe_devices() returns void (if calls fail, we just drive on); don't
Browse files Browse the repository at this point in the history
try to return a value from it.
  • Loading branch information
yuguy committed Dec 23, 2008
1 parent 5e3edce commit a669335
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pcap-usb-linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit a669335

Please sign in to comment.