[Pcsclite-cvs-commit] r2392 - trunk/Drivers/ccid/src

Ludovic Rousseau rousseau at alioth.debian.org
Sat Feb 10 20:43:13 CET 2007


Author: rousseau
Date: 2007-02-10 20:43:13 +0100 (Sat, 10 Feb 2007)
New Revision: 2392

Modified:
   trunk/Drivers/ccid/src/ccid_usb.c
Log:
get_end_points(): use usb_interface->altsetting->bNumEndpoints instead
of the hardcoded value 3


Modified: trunk/Drivers/ccid/src/ccid_usb.c
===================================================================
--- trunk/Drivers/ccid/src/ccid_usb.c	2007-02-08 14:47:52 UTC (rev 2391)
+++ trunk/Drivers/ccid/src/ccid_usb.c	2007-02-10 19:43:13 UTC (rev 2392)
@@ -605,7 +605,7 @@
 	/*
 	 * 3 Endpoints maximum: Interrupt In, Bulk In, Bulk Out
 	 */
-	for (i=0; i<3; i++)
+	for (i=0; i<dev->config->bNumEndpoints; i++)
 	{
 		if (usb_interface->altsetting->endpoint[i].bmAttributes != USB_ENDPOINT_TYPE_BULK)
 			continue;




More information about the Pcsclite-cvs-commit mailing list