[Pcsclite-cvs-commit] r6341 - /trunk/pcsc-tools/pcsc_scan.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Sat Jun 16 10:36:43 UTC 2012


Author: rousseau
Date: Sat Jun 16 10:36:43 2012
New Revision: 6341

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=6341
Log:
Fix compiler warning

Use j instead of i for the variable name

pcsc_scan.c:128:8: warning: declaration of ‘i’ shadows a previous local [-Wshadow]
pcsc_scan.c:78:17: warning: shadowed declaration is here [-Wshadow]

Modified:
    trunk/pcsc-tools/pcsc_scan.c

Modified: trunk/pcsc-tools/pcsc_scan.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/pcsc-tools/pcsc_scan.c?rev=6341&op=diff
==============================================================================
--- trunk/pcsc-tools/pcsc_scan.c (original)
+++ trunk/pcsc-tools/pcsc_scan.c Sat Jun 16 10:36:43 2012
@@ -125,13 +125,13 @@
 		term = getenv("TERM");
 		if (term)
 		{
-			int i;
+			int j;
 
 			/* for each known color terminal */
-			for (i = 0; i < sizeof(terms) / sizeof(terms[0]); i++)
+			for (j = 0; j < sizeof(terms) / sizeof(terms[0]); j++)
 			{
 				/* we found a supported term? */
-				if (0 == strcmp(terms[i], term))
+				if (0 == strcmp(terms[j], term))
 				{
 					blue = "\33[34m";
 					red = "\33[31m";




More information about the Pcsclite-cvs-commit mailing list