[Pcsclite-cvs-commit] r2724 - /trunk/Drivers/ccid/src/commands.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Tue Jan 8 08:06:07 UTC 2008


Author: rousseau
Date: Tue Jan  8 08:06:07 2008
New Revision: 2724

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=2724
Log:
CCID_Receive(): do not declare a _ccid_descriptor variable for the twin
serial (warning: unused variable 'ccid_descriptor')

Modified:
    trunk/Drivers/ccid/src/commands.c

Modified: trunk/Drivers/ccid/src/commands.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/Drivers/ccid/src/commands.c?rev=2724&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/commands.c (original)
+++ trunk/Drivers/ccid/src/commands.c Tue Jan  8 08:06:07 2008
@@ -1101,10 +1101,11 @@
 	unsigned char cmd[10+CMD_BUF_SIZE];	/* CCID + APDU buffer */
 	unsigned int length;
 	RESPONSECODE return_value = IFD_SUCCESS;
+	status_t ret;
+
+#ifndef TWIN_SERIAL
 	_ccid_descriptor *ccid_descriptor = get_ccid_descriptor(reader_index);
-	status_t ret;
-
-#ifndef TWIN_SERIAL
+
 	if (ICCD_A == ccid_descriptor->bInterfaceProtocol)
 	{
 		int r;




More information about the Pcsclite-cvs-commit mailing list