[PATCH 05/15] uuidd: use ignore_result helper

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Petr Uzel <petr.uzel@xxxxxxx>
---
 misc-utils/uuidd.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/misc-utils/uuidd.c b/misc-utils/uuidd.c
index be3e3cf..50ae61f 100644
--- a/misc-utils/uuidd.c
+++ b/misc-utils/uuidd.c
@@ -34,6 +34,7 @@ extern int optind;
 #include "uuid.h"
 #include "uuidd.h"
 #include "writeall.h"
+#include "c.h"
 
 #include "closestream.h"
 #include "nls.h"
@@ -327,9 +328,7 @@ static void server_loop(const char *socket_path, const char *pidfile_path,
 
 	if (pidfile_path) {
 		sprintf(reply_buf, "%8d\n", getpid());
-		if (ftruncate(fd_pidfile, 0)) {
-			/* Silence warn_unused_result */
-		}
+		ignore_result( ftruncate(fd_pidfile, 0) );
 		write_all(fd_pidfile, reply_buf, strlen(reply_buf));
 		if (fd_pidfile > 1)
 			close(fd_pidfile); /* Unlock the pid file */
-- 
1.7.7

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux