[Pcsclite-cvs-commit] r2430 - trunk/Drivers/ccid/src
Ludovic Rousseau
rousseau at alioth.debian.org
Fri Feb 23 18:09:50 CET 2007
Author: rousseau
Date: 2007-02-23 18:09:49 +0100 (Fri, 23 Feb 2007)
New Revision: 2430
Modified:
trunk/Drivers/ccid/src/commands.c
Log:
CmdPowerOn() & SecurePINVerify(): rename 6 local variables to avoid:
warning: declaration of 'cmd' shadows a previous local
Modified: trunk/Drivers/ccid/src/commands.c
===================================================================
--- trunk/Drivers/ccid/src/commands.c 2007-02-23 17:02:43 UTC (rev 2429)
+++ trunk/Drivers/ccid/src/commands.c 2007-02-23 17:09:49 UTC (rev 2430)
@@ -118,12 +118,12 @@
((GEMPC433 == ccid_descriptor->readerID)
|| (CHERRYXX33 == ccid_descriptor->readerID)))
{
- unsigned char cmd[] = {0x1F, 0x01};
- unsigned char res[1];
- unsigned int res_length = sizeof(res);
+ unsigned char cmd_tmp[] = {0x1F, 0x01};
+ unsigned char res_tmp[1];
+ unsigned int res_length = sizeof(res_tmp);
- if ((return_value = CmdEscape(reader_index, cmd, sizeof(cmd), res,
- &res_length)) != IFD_SUCCESS)
+ if ((return_value = CmdEscape(reader_index, cmd_tmp,
+ sizeof(cmd_tmp), res_tmp, &res_length)) != IFD_SUCCESS)
return return_value;
/* avoid looping if we can't switch mode */
@@ -288,16 +288,16 @@
if ((SPR532 == ccid_descriptor->readerID) && (TxBuffer[15] == 4))
{
RESPONSECODE return_value;
- unsigned char cmd[] = { 0x80, 0x02, 0x00 };
- unsigned char res[1];
- unsigned int res_length = sizeof(res);
+ unsigned char cmd_tmp[] = { 0x80, 0x02, 0x00 };
+ unsigned char res_tmp[1];
+ unsigned int res_length = sizeof(res_tmp);
/* the SPR532 will append the PIN code without any padding */
- return_value = CmdEscape(reader_index, cmd, sizeof(cmd), res,
- &res_length);
+ return_value = CmdEscape(reader_index, cmd_tmp, sizeof(cmd_tmp),
+ res_tmp, &res_length);
if (return_value != IFD_SUCCESS)
{
- ccid_error(res[ERROR_OFFSET], __FILE__, __LINE__, __FUNCTION__);
+ ccid_error(res_tmp[ERROR_OFFSET], __FILE__, __LINE__, __FUNCTION__);
return return_value;
}
}
More information about the Pcsclite-cvs-commit
mailing list