convert bridge to new packaging style
[openwrt.git] / obsolete-buildroot / sources / mrouted-sys_errlist.patch
1 Patches from Kevin P. Fleming <kpfleming@backtobasicsmgmt.com>.
2
3 --- mrouted-3.9-beta3.orig/main.c~ 2004-03-10 19:00:38.000000000 -0700
4 +++ mrouted-3.9-beta3.orig/main.c 2004-03-10 19:02:33.000000000 -0700
5 @@ -1001,10 +1001,8 @@
6 thyme->tm_min, thyme->tm_sec, now.tv_usec / 1000, msg);
7 if (syserr == 0)
8 fprintf(stderr, "\n");
9 - else if (syserr < sys_nerr)
10 - fprintf(stderr, ": %s\n", sys_errlist[syserr]);
11 else
12 - fprintf(stderr, ": errno %d\n", syserr);
13 + fprintf(stderr, ": %s\n", strerror(syserr));
14 }
15
16 /*
17 --- mrouted-3.9-beta3.orig/mrinfo.c~ 1998-02-28 20:05:20.000000000 -0700
18 +++ mrouted-3.9-beta3.orig/mrinfo.c 2004-03-10 19:01:49.000000000 -0700
19 @@ -159,10 +159,8 @@
20 vfprintf(stderr, fmt, ap);
21 if (syserr == 0)
22 fprintf(stderr, "\n");
23 - else if (syserr < sys_nerr)
24 - fprintf(stderr, ": %s\n", sys_errlist[syserr]);
25 else
26 - fprintf(stderr, ": errno %d\n", syserr);
27 + fprintf(stderr, ": %s\n", strerror(syserr));
28 }
29
30 if (severity <= LOG_ERR)
31 --- mrouted-3.9-beta3.orig/mapper.c~ 1998-01-05 18:57:47.000000000 -0700
32 +++ mrouted-3.9-beta3.orig/mapper.c 2004-03-10 19:02:04.000000000 -0700
33 @@ -197,10 +197,8 @@
34 vfprintf(stderr, fmt, ap);
35 if (syserr == 0)
36 fprintf(stderr, "\n");
37 - else if (syserr < sys_nerr)
38 - fprintf(stderr, ": %s\n", sys_errlist[syserr]);
39 else
40 - fprintf(stderr, ": errno %d\n", syserr);
41 + fprintf(stderr, ": %s\n", strerror(syserr));
42 }
43
44 if (severity <= LOG_ERR)
This page took 0.045623 seconds and 5 git commands to generate.