svn commit: r189621 - head/lib/libusb

Andrew Thompson thompsa at FreeBSD.org
Tue Mar 10 07:29:35 PDT 2009


Author: thompsa
Date: Tue Mar 10 14:29:34 2009
New Revision: 189621
URL: http://svn.freebsd.org/changeset/base/189621

Log:
  Be compatible with LibUSB from sourceforge and close the handle after reset
  
  Submitted by:	Hans Petter Selasky

Modified:
  head/lib/libusb/libusb20_compat01.c

Modified: head/lib/libusb/libusb20_compat01.c
==============================================================================
--- head/lib/libusb/libusb20_compat01.c	Tue Mar 10 14:28:19 2009	(r189620)
+++ head/lib/libusb/libusb20_compat01.c	Tue Mar 10 14:29:34 2009	(r189621)
@@ -816,7 +816,11 @@ usb_reset(usb_dev_handle * dev)
 	if (err)
 		return (-1);
 
-	return (0);
+	/*
+	 * Be compatible with LibUSB from sourceforge and close the
+	 * handle after reset!
+	 */
+	return (usb_close(dev));
 }
 
 const char *


More information about the svn-src-head mailing list