diff options
author | thompsa <thompsa@FreeBSD.org> | 2010-05-17 23:56:17 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2010-05-17 23:56:17 +0000 |
commit | 4c0081bfc8f7b68e52b1a5d8c3e5d5427ad3ef59 (patch) | |
tree | 39b9825f9a3133954d9f61a7a50973c348c01265 /lib | |
parent | 40310299b8ffb63ea75c19d7352572e3f5bea061 (diff) | |
download | FreeBSD-src-4c0081bfc8f7b68e52b1a5d8c3e5d5427ad3ef59.zip FreeBSD-src-4c0081bfc8f7b68e52b1a5d8c3e5d5427ad3ef59.tar.gz |
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libusb/libusb20_compat01.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libusb/libusb20_compat01.c b/lib/libusb/libusb20_compat01.c index 48a7dd5..e53770c 100644 --- a/lib/libusb/libusb20_compat01.c +++ b/lib/libusb/libusb20_compat01.c @@ -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 * |