Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Mar 2009 14:29:34 +0000 (UTC)
From:      Andrew Thompson <thompsa@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r189621 - head/lib/libusb
Message-ID:  <200903101429.n2AETYuY064546@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 *



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