diff options
author | Denis Vlasenko | 2007-06-04 18:23:59 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-06-04 18:23:59 +0000 |
commit | 3c8b5ba8e82363c1fd8f58260b4470a96285cd21 (patch) | |
tree | aeb5923935a52aae8de95a69df5df1dc75144dc0 /sysklogd | |
parent | ef4bb26f937b6628306742c417305b813d8f2913 (diff) | |
download | busybox-3c8b5ba8e82363c1fd8f58260b4470a96285cd21.zip busybox-3c8b5ba8e82363c1fd8f58260b4470a96285cd21.tar.gz |
syslogd: move some vectors from data to text. Needs uclibc patch
to have any effect (patch is submitted to uclibc ml).
# size *[67]/*/syslog*.o
text data bss dec hex filename
3169 288 0 3457 d81 busybox.t6/sysklogd/syslogd.o
3457 0 0 3457 d81 busybox.t7/sysklogd/syslogd.o
Diffstat (limited to 'sysklogd')
-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 8897e9c..c8f1356 100644 --- a/sysklogd/syslogd.c +++ b/sysklogd/syslogd.c @@ -17,10 +17,10 @@ #include <paths.h> #include <sys/un.h> -/* SYSLOG_NAMES defined to pull some extra junk from syslog.h: */ -/* prioritynames[] and facilitynames[]. uclibc pulls those in _rwdata_! :( */ - +/* SYSLOG_NAMES defined to pull prioritynames[] and facilitynames[] + * from syslog.h. Grrrr - glibc puts those in _rwdata_! :( */ #define SYSLOG_NAMES +#define SYSLOG_NAMES_CONST /* uclibc is saner :) */ #include <sys/syslog.h> #include <sys/uio.h> @@ -386,7 +386,7 @@ static void log_locally(char *msg) static void parse_fac_prio_20(int pri, char *res20) { - CODE *c_pri, *c_fac; + const CODE *c_pri, *c_fac; if (pri != 0) { c_fac = facilitynames; |