svn commit: trunk/uClibc/include/sys
vda at uclibc.org
vda at uclibc.org
Sat Jul 14 14:52:27 UTC 2007
Author: vda
Date: 2007-07-14 07:52:24 -0700 (Sat, 14 Jul 2007)
New Revision: 19087
Log:
syslog.h: allow prioritynames[]/facilitynames[] to be defined const
(selectable by #defining SYSLOG_NAMES_CONST)
Modified:
trunk/uClibc/include/sys/syslog.h
Changeset:
Modified: trunk/uClibc/include/sys/syslog.h
===================================================================
--- trunk/uClibc/include/sys/syslog.h 2007-07-14 11:33:10 UTC (rev 19086)
+++ trunk/uClibc/include/sys/syslog.h 2007-07-14 14:52:24 UTC (rev 19087)
@@ -71,6 +71,9 @@
int c_val;
} CODE;
+#ifdef SYSLOG_NAMES_CONST
+const
+#endif
CODE prioritynames[] =
{
{ "alert", LOG_ALERT },
@@ -119,6 +122,9 @@
#define LOG_FAC(p) (((p) & LOG_FACMASK) >> 3)
#ifdef SYSLOG_NAMES
+#ifdef SYSLOG_NAMES_CONST
+const
+#endif
CODE facilitynames[] =
{
{ "auth", LOG_AUTH },
More information about the uClibc-cvs
mailing list