svn commit: r225035 - head/lib/libusb
Hans Petter Selasky
hselasky at FreeBSD.org
Sat Aug 20 14:04:17 UTC 2011
Author: hselasky
Date: Sat Aug 20 14:04:16 2011
New Revision: 225035
URL: http://svn.freebsd.org/changeset/base/225035
Log:
Use correct enum instead of constant value.
MFC after: 1 week
Spotted by: scf @
Approved by: re (kib)
Modified:
head/lib/libusb/libusb10.c
Modified: head/lib/libusb/libusb10.c
==============================================================================
--- head/lib/libusb/libusb10.c Sat Aug 20 13:47:08 2011 (r225034)
+++ head/lib/libusb/libusb10.c Sat Aug 20 14:04:16 2011 (r225035)
@@ -276,7 +276,7 @@ enum libusb_speed
libusb_get_device_speed(libusb_device *dev)
{
if (dev == NULL)
- return (0); /* should not happen */
+ return (LIBUSB_SPEED_UNKNOWN); /* should not happen */
switch (libusb20_dev_get_speed(dev->os_priv)) {
case LIBUSB20_SPEED_LOW:
More information about the svn-src-all
mailing list