svn commit: r208235 - stable/8/lib/libusb
Andrew Thompson
thompsa at FreeBSD.org
Mon May 17 23:56:17 UTC 2010
Author: thompsa
Date: Mon May 17 23:56:17 2010
New Revision: 208235
URL: http://svn.freebsd.org/changeset/base/208235
Log:
MFC r208021
Fix return values for usb_find_busses() and usb_find_devices(). We should try
to return the actual number of busses and devices.
Modified:
stable/8/lib/libusb/libusb20_compat01.c
Directory Properties:
stable/8/lib/libusb/ (props changed)
stable/8/lib/libusb/usb.h (props changed)
Modified: stable/8/lib/libusb/libusb20_compat01.c
==============================================================================
--- stable/8/lib/libusb/libusb20_compat01.c Mon May 17 23:55:38 2010 (r208234)
+++ stable/8/lib/libusb/libusb20_compat01.c Mon May 17 23:56:17 2010 (r208235)
@@ -820,7 +820,7 @@ int
usb_find_busses(void)
{
usb_busses = &usb_global_bus;
- return (0);
+ return (1);
}
int
@@ -904,7 +904,7 @@ usb_find_devices(void)
LIST_ADD(usb_global_bus.devices, udev);
}
- return (0); /* success */
+ return (devnum - 1); /* success */
}
struct usb_device *
More information about the svn-src-stable
mailing list