[Pcsclite-cvs-commit] r6563 - /trunk/Drivers/ccid/src/ifdhandler.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Wed Mar 6 14:27:02 UTC 2013
Author: rousseau
Date: Wed Mar 6 14:27:02 2013
New Revision: 6563
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=6563
Log:
cppcheck: The scope of the variable 'i' can be reduced.
Modified:
trunk/Drivers/ccid/src/ifdhandler.c
Modified: trunk/Drivers/ccid/src/ifdhandler.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/Drivers/ccid/src/ifdhandler.c?rev=6563&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/ifdhandler.c (original)
+++ trunk/Drivers/ccid/src/ifdhandler.c Wed Mar 6 14:27:02 2013
@@ -1925,7 +1925,6 @@
unsigned int card_baudrate;
unsigned int default_baudrate;
double f, d;
- int i;
/* if TA1 not present */
if (! atr->ib[0][ATR_INTERFACE_BYTE_TA].present)
@@ -1963,6 +1962,8 @@
if (SCARD_PROTOCOL_T1 == Protocol)
{
+ int i;
+
/* TBi (i>2) present? BWI/CWI */
for (i=2; i<ATR_MAX_PROTOCOLS; i++)
{
More information about the Pcsclite-cvs-commit
mailing list