diff options
-rw-r--r-- | sysklogd/syslogd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c index 8897e9c2d..c8f13568d 100644 --- a/sysklogd/syslogd.c +++ b/sysklogd/syslogd.c | |||
@@ -17,10 +17,10 @@ | |||
17 | #include <paths.h> | 17 | #include <paths.h> |
18 | #include <sys/un.h> | 18 | #include <sys/un.h> |
19 | 19 | ||
20 | /* SYSLOG_NAMES defined to pull some extra junk from syslog.h: */ | 20 | /* SYSLOG_NAMES defined to pull prioritynames[] and facilitynames[] |
21 | /* prioritynames[] and facilitynames[]. uclibc pulls those in _rwdata_! :( */ | 21 | * from syslog.h. Grrrr - glibc puts those in _rwdata_! :( */ |
22 | |||
23 | #define SYSLOG_NAMES | 22 | #define SYSLOG_NAMES |
23 | #define SYSLOG_NAMES_CONST /* uclibc is saner :) */ | ||
24 | #include <sys/syslog.h> | 24 | #include <sys/syslog.h> |
25 | #include <sys/uio.h> | 25 | #include <sys/uio.h> |
26 | 26 | ||
@@ -386,7 +386,7 @@ static void log_locally(char *msg) | |||
386 | 386 | ||
387 | static void parse_fac_prio_20(int pri, char *res20) | 387 | static void parse_fac_prio_20(int pri, char *res20) |
388 | { | 388 | { |
389 | CODE *c_pri, *c_fac; | 389 | const CODE *c_pri, *c_fac; |
390 | 390 | ||
391 | if (pri != 0) { | 391 | if (pri != 0) { |
392 | c_fac = facilitynames; | 392 | c_fac = facilitynames; |