[Uronode] axmail version 2.1.1 - compile error and fix

Boudewijn (Bob) Tenty bobtenty at gmail.com
Thu Oct 30 15:02:33 CDT 2014


Tom,

Below is the utils.c.diff  patch file in case you can't reach the svn 
repository yet.
It solves the utils.c compiler warning for axmail version 2.1-1
Copy and paste it to a file called "utils.c.diff" in the source 
directory and  apply the patch with,

patch -p0 < utils.c.diff

73, Bob VE3TOK


--- utils.c.orig    2014-10-30 03:24:15.000000000 +0000
+++ utils.c    2014-10-30 03:32:54.000000000 +0000
@@ -150,12 +150,9 @@
      va_start(args, fmt);
      vprintf(fmt, args);
      va_end(args);
-
-/*    if (e <= sys_nerr) */
-    if (e <= strerror)
-/*        printf(": %s\n", strerror[e]); */
-        printf(": %s\n", strerror(errno));
-    else
-        printf(": unknown system error %d\n", e);
+
+        printf("Error number: %d\n", e);          /* Changed error 
function, Boudewijn (Bob) Tenty VE3TOK - Oct 25, 2014 */
+        perror("The following error occurred: ");
+
  }


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.tapr.org/pipermail/uronode/attachments/20141030/097b75b7/attachment-0001.html>


More information about the Uronode mailing list