SF.net SVN: geany: [1349] trunk/src/tools.c

eht16 at users.sourceforge.net eht16 at xxxxx
Thu Mar 1 11:42:12 UTC 2007


Revision: 1349
          http://svn.sourceforge.net/geany/?rev=1349&view=rev
Author:   eht16
Date:     2007-03-01 03:42:11 -0800 (Thu, 01 Mar 2007)

Log Message:
-----------
Replaced glibc printf extension %m with strerror() call.

Modified Paths:
--------------
    trunk/src/tools.c

Modified: trunk/src/tools.c
===================================================================
--- trunk/src/tools.c	2007-03-01 11:38:14 UTC (rev 1348)
+++ trunk/src/tools.c	2007-03-01 11:42:11 UTC (rev 1349)
@@ -30,6 +30,7 @@
 #include <stdlib.h>
 #include <unistd.h>
 #include <string.h>
+#include <errno.h>
 
 #ifdef G_OS_UNIX
 # include <sys/types.h>
@@ -632,7 +633,8 @@
 			wrote = write(stdin_fd, sel, remaining);
 			if (wrote < 0)
 			{
-				g_warning("%s: %s: %m\n", __func__, "Failed sending data to command");
+				g_warning("%s: %s: %s\n", __func__, "Failed sending data to command",
+										strerror(errno));
 				break;
 			}
 			remaining -= wrote;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list