Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 May 2010 20:43:01 GMT
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 177865 for review
Message-ID:  <201005062043.o46Kh16b064591@repoman.freebsd.org>

index | next in thread | raw e-mail

http://p4web.freebsd.org/@@177865?ac=10

Change 177865 by hselasky@hselasky_laptop001 on 2010/05/06 20:42:29

	
	LibUSB v.0.1:
		- fix compliancy issue: Fix return values for usb_find_busses()
		and usb_find_devices(). We should try to return the actual number
		of busses and devices.
		- reported by: Mike Tancsa
		- patch by: HPS @

Affected files ...

.. //depot/projects/usb/src/lib/libusb/libusb20_compat01.c#10 edit

Differences ...

==== //depot/projects/usb/src/lib/libusb/libusb20_compat01.c#10 (text+ko) ====

@@ -833,7 +833,7 @@
 usb_find_busses(void)
 {
 	usb_busses = &usb_global_bus;
-	return (0);
+	return (1);
 }
 
 int
@@ -920,7 +920,7 @@
 		LIST_ADD(usb_global_bus.devices, udev);
 	}
 
-	return (0);			/* success */
+	return (devnum - 1);			/* success */
 }
 
 struct usb_device *


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005062043.o46Kh16b064591>