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 *
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to