dect
/
libpcap
Archived
13
0
Fork 0

probe_devices() returns void (if calls fail, we just drive on); don't

try to return a value from it.
This commit is contained in:
guy 2008-12-23 20:55:28 +00:00
parent 5e3edce42f
commit a669335415
1 changed files with 2 additions and 2 deletions

View File

@ -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;