[memprof: 23/76] server.c: Store return value of ret somewhere



commit d236dd9bdecb2f22fd648ad76f37d3e78e7520a3
Author: Holger Hans Peter Freyther <zecke selfish org>
Date:   Thu Jun 4 13:17:05 2009 +0200

    server.c: Store return value of ret somewhere

 src/server.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/server.c b/src/server.c
index 7d374c7..ee1cf98 100644
--- a/src/server.c
+++ b/src/server.c
@@ -343,8 +343,9 @@ terminate_io_handler (GIOChannel  *channel,
 		      gpointer     data)
 {
 	char c;
+	int ret;
 	
-	read (terminate_pipe[0], &c, 1);
+	ret = read (terminate_pipe[0], &c, 1);
 
 	fprintf (stderr, "memprof: Caught signal %d (%s), cleaning up\n", c, g_strsignal(c));
 



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