From 4c0081bfc8f7b68e52b1a5d8c3e5d5427ad3ef59 Mon Sep 17 00:00:00 2001 From: thompsa Date: Mon, 17 May 2010 23:56:17 +0000 Subject: 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. --- lib/libusb/libusb20_compat01.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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 * -- cgit v1.1