OSDN Git Service
(root)
/
uclinux-h8
/
uclibc-ng.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e8d339
)
syslog.h: allow prioritynames[]/facilitynames[] to be defined const
author
Denis Vlasenko
<vda.linux@googlemail.com>
Sat, 14 Jul 2007 14:52:24 +0000
(14:52 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Sat, 14 Jul 2007 14:52:24 +0000
(14:52 -0000)
(selectable by #defining SYSLOG_NAMES_CONST)
include/sys/syslog.h
patch
|
blob
|
history
diff --git
a/include/sys/syslog.h
b/include/sys/syslog.h
index
cbbc31e
..
e8fc4e7
100644
(file)
--- a/
include/sys/syslog.h
+++ b/
include/sys/syslog.h
@@
-71,6
+71,9
@@
typedef struct _code {
int c_val;
} CODE;
+#ifdef SYSLOG_NAMES_CONST
+const
+#endif
CODE prioritynames[] =
{
{ "alert", LOG_ALERT },
@@
-119,6
+122,9
@@
CODE prioritynames[] =
#define LOG_FAC(p) (((p) & LOG_FACMASK) >> 3)
#ifdef SYSLOG_NAMES
+#ifdef SYSLOG_NAMES_CONST
+const
+#endif
CODE facilitynames[] =
{
{ "auth", LOG_AUTH },