[Pcsclite-cvs-commit] r6625 - /trunk/PCSC/src/pcscdaemon.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Wed May 8 11:51:09 UTC 2013


Author: rousseau
Date: Wed May  8 11:51:09 2013
New Revision: 6625

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=6625
Log:
Explicitely ignore write() return value

pcscdaemon.c:626:3: warning: ignoring return value of function declared with warn_unused_result attribute [-Wunused-result]
                write(pipefd[1], &buf, 1);
                ^~~~~ ~~~~~~~~~~~~~~~~~~
pcscdaemon.c:648:3: warning: ignoring return value of function declared with warn_unused_result attribute [-Wunused-result]
                write(pipefd[1], &buf, 1);
                ^~~~~ ~~~~~~~~~~~~~~~~~~
2 warnings generated.

We don't have much to do if write() on the interprocess pipe fails.

Modified:
    trunk/PCSC/src/pcscdaemon.c

Modified: trunk/PCSC/src/pcscdaemon.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/pcscdaemon.c?rev=6625&op=diff
==============================================================================
--- trunk/PCSC/src/pcscdaemon.c (original)
+++ trunk/PCSC/src/pcscdaemon.c Wed May  8 11:51:09 2013
@@ -623,7 +623,7 @@
 		char buf = 0;
 
 		/* write a 0 (success) to father process */
-		write(pipefd[1], &buf, 1);
+		(void)write(pipefd[1], &buf, 1);
 		close(pipefd[1]);
 	}
 
@@ -645,7 +645,7 @@
 
 		/* write the error code to father process */
 		buf = ExitValue;
-		write(pipefd[1], &buf, 1);
+		(void)write(pipefd[1], &buf, 1);
 		close(pipefd[1]);
 	}
 




More information about the Pcsclite-cvs-commit mailing list