[Pcsclite-cvs-commit] r5536 - /trunk/PCSC/src/winscard_clnt.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Thu Jan 20 09:31:02 UTC 2011


Author: rousseau
Date: Thu Jan 20 09:31:01 2011
New Revision: 5536

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5536
Log:
SCardEstablishContext(): remove useless affectation

src/winscard_clnt.c:439:5: warning: Value stored to 'ret' is never read
  ...ret = execl(PCSCD_BINARY, "pcscd", "--auto-exit", param,
     ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Modified:
    trunk/PCSC/src/winscard_clnt.c

Modified: trunk/PCSC/src/winscard_clnt.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/winscard_clnt.c?rev=5536&op=diff
==============================================================================
--- trunk/PCSC/src/winscard_clnt.c (original)
+++ trunk/PCSC/src/winscard_clnt.c Thu Jan 20 09:31:01 2011
@@ -423,7 +423,7 @@
 
 			if (0 == pid)
 			{
-				int ret, i, max;
+				int i, max;
 				char *param = getenv("PCSCLITE_PCSCD_ARGS");
 
 				/* close all file handles except stdin, stdout and
@@ -436,7 +436,7 @@
 					(void)close(i);
 
 				/* son process */
-				ret = execl(PCSCD_BINARY, "pcscd", "--auto-exit", param,
+				execl(PCSCD_BINARY, "pcscd", "--auto-exit", param,
 					(char *)NULL);
 				Log2(PCSC_LOG_CRITICAL, "exec " PCSCD_BINARY " failed: %s",
 					strerror(errno));




More information about the Pcsclite-cvs-commit mailing list