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

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Thu Jan 20 09:47:42 UTC 2011


Author: rousseau
Date: Thu Jan 20 09:47:42 2011
New Revision: 5541

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5541
Log:
SecurePINVerify() & SecurePINModify(): ignore the returned value of
t1_build()

commands.c:416:3: warning: Value stored to 'ret' is never read
                ret = t1_build(&((get_ccid_slot(reader_index))->t1),
                ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
commands.c:653:3: warning: Value stored to 'ret' is never read
                ret = t1_build(&((get_ccid_slot(reader_index))->t1),
                ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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=5541&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/commands.c (original)
+++ trunk/Drivers/ccid/src/commands.c Thu Jan 20 09:47:42 2011
@@ -413,7 +413,7 @@
 			TxLength - offsetof(PIN_VERIFY_STRUCTURE, abData));
 
 		/* Create T=1 block */
-		ret = t1_build(&((get_ccid_slot(reader_index))->t1),
+		(void)t1_build(&((get_ccid_slot(reader_index))->t1),
 			sdata, 0, T1_I_BLOCK, &sbuf, NULL);
 
 		/* Increment the sequence numbers  */
@@ -650,7 +650,7 @@
 			TxLength - offsetof(PIN_MODIFY_STRUCTURE, abData));
 
 		/* Create T=1 block */
-		ret = t1_build(&((get_ccid_slot(reader_index))->t1),
+		(void)t1_build(&((get_ccid_slot(reader_index))->t1),
 			sdata, 0, T1_I_BLOCK, &sbuf, NULL);
 
 		/* Increment the sequence numbers  */




More information about the Pcsclite-cvs-commit mailing list