summaryrefslogtreecommitdiffstats
path: root/sources/mrouted-sys_errlist.patch
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2004-03-11 17:35:09 +0000
committerManuel Novoa III <mjn3@codepoet.org>2004-03-11 17:35:09 +0000
commit1ffd497d7e4c0d55b30dcb94a8cb92ecb9df2bad (patch)
tree78d3d269c578621407a98a35c019fced8c2cbb97 /sources/mrouted-sys_errlist.patch
parent4c8e1eb4cc6eb730b3e18c17b6b8f954f7067c45 (diff)
downloadbuildroot-novena-1ffd497d7e4c0d55b30dcb94a8cb92ecb9df2bad.tar.gz
buildroot-novena-1ffd497d7e4c0d55b30dcb94a8cb92ecb9df2bad.zip
Patch from "Kevin P. Fleming" <kpfleming@backtobasicsmgmt.com>, with
some minor adjustments.
Diffstat (limited to 'sources/mrouted-sys_errlist.patch')
-rw-r--r--sources/mrouted-sys_errlist.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/sources/mrouted-sys_errlist.patch b/sources/mrouted-sys_errlist.patch
new file mode 100644
index 000000000..8498dc743
--- /dev/null
+++ b/sources/mrouted-sys_errlist.patch
@@ -0,0 +1,44 @@
+Patches from Kevin P. Fleming <kpfleming@backtobasicsmgmt.com>.
+
+--- mrouted-3.9-beta3.orig/main.c~ 2004-03-10 19:00:38.000000000 -0700
++++ mrouted-3.9-beta3.orig/main.c 2004-03-10 19:02:33.000000000 -0700
+@@ -1001,10 +1001,8 @@
+ thyme->tm_min, thyme->tm_sec, now.tv_usec / 1000, msg);
+ if (syserr == 0)
+ fprintf(stderr, "\n");
+- else if (syserr < sys_nerr)
+- fprintf(stderr, ": %s\n", sys_errlist[syserr]);
+ else
+- fprintf(stderr, ": errno %d\n", syserr);
++ fprintf(stderr, ": %s\n", strerror(syserr));
+ }
+
+ /*
+--- mrouted-3.9-beta3.orig/mrinfo.c~ 1998-02-28 20:05:20.000000000 -0700
++++ mrouted-3.9-beta3.orig/mrinfo.c 2004-03-10 19:01:49.000000000 -0700
+@@ -159,10 +159,8 @@
+ vfprintf(stderr, fmt, ap);
+ if (syserr == 0)
+ fprintf(stderr, "\n");
+- else if (syserr < sys_nerr)
+- fprintf(stderr, ": %s\n", sys_errlist[syserr]);
+ else
+- fprintf(stderr, ": errno %d\n", syserr);
++ fprintf(stderr, ": %s\n", strerror(syserr));
+ }
+
+ if (severity <= LOG_ERR)
+--- mrouted-3.9-beta3.orig/mapper.c~ 1998-01-05 18:57:47.000000000 -0700
++++ mrouted-3.9-beta3.orig/mapper.c 2004-03-10 19:02:04.000000000 -0700
+@@ -197,10 +197,8 @@
+ vfprintf(stderr, fmt, ap);
+ if (syserr == 0)
+ fprintf(stderr, "\n");
+- else if (syserr < sys_nerr)
+- fprintf(stderr, ": %s\n", sys_errlist[syserr]);
+ else
+- fprintf(stderr, ": errno %d\n", syserr);
++ fprintf(stderr, ": %s\n", strerror(syserr));
+ }
+
+ if (severity <= LOG_ERR)