[Pcsclite-cvs-commit] r6702 - trunk/PCSC/src

ludovic.rousseau at free.fr ludovic.rousseau at free.fr
Wed Jul 31 17:16:54 UTC 2013


Author: rousseau
Date: 2013-07-31 17:16:54 +0000 (Wed, 31 Jul 2013)
New Revision: 6702

Modified:
   trunk/PCSC/src/pcscdaemon.c
Log:
Fix compiler warnings

pcscdaemon.c: In function ?\226?\128?\152main?\226?\128?\153:
pcscdaemon.c:547:12: attention : declaration of ?\226?\128?\152r?\226?\128?\153 shadows a previous local [-Wshadow]
pcscdaemon.c:152:6: attention : shadowed declaration is here [-Wshadow]
pcscdaemon.c:637:11: attention : declaration of ?\226?\128?\152r?\226?\128?\153 shadows a previous local [-Wshadow]
pcscdaemon.c:152:6: attention : shadowed declaration is here [-Wshadow]


Modified: trunk/PCSC/src/pcscdaemon.c
===================================================================
--- trunk/PCSC/src/pcscdaemon.c	2013-07-30 13:10:21 UTC (rev 6701)
+++ trunk/PCSC/src/pcscdaemon.c	2013-07-31 17:16:54 UTC (rev 6702)
@@ -544,11 +544,11 @@
 		if (f != -1)
 		{
 			char pid[PID_ASCII_SIZE];
-			ssize_t r;
+			ssize_t rr;
 
 			(void)snprintf(pid, sizeof(pid), "%u\n", (unsigned) getpid());
-			r = write(f, pid, strlen(pid) + 1);
-			if (r < 0)
+			rr = write(f, pid, strlen(pid) + 1);
+			if (rr < 0)
 			{
 				Log2(PCSC_LOG_CRITICAL,
 					"writting " PCSCLITE_RUN_PID " failed: %s",
@@ -634,11 +634,11 @@
 	if (pipefd[1] >= 0)
 	{
 		char buf = 0;
-		ssize_t r;
+		ssize_t rr;
 
 		/* write a 0 (success) to father process */
-		r = write(pipefd[1], &buf, 1);
-		if (r < 0)
+		rr = write(pipefd[1], &buf, 1);
+		if (rr < 0)
 		{
 			Log2(PCSC_LOG_ERROR, "write() failed: %s", strerror(errno));
 		}




More information about the Pcsclite-cvs-commit mailing list