svn commit: trunk/busybox/sysklogd

vda at busybox.net vda at busybox.net
Mon Jun 4 18:24:01 UTC 2007


Author: vda
Date: 2007-06-04 11:23:59 -0700 (Mon, 04 Jun 2007)
New Revision: 18741

Log:
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



Modified:
   trunk/busybox/sysklogd/syslogd.c


Changeset:
Modified: trunk/busybox/sysklogd/syslogd.c
===================================================================
--- trunk/busybox/sysklogd/syslogd.c	2007-06-04 12:21:53 UTC (rev 18740)
+++ trunk/busybox/sysklogd/syslogd.c	2007-06-04 18:23:59 UTC (rev 18741)
@@ -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 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;




More information about the busybox-cvs mailing list