diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-07-14 14:52:24 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-07-14 14:52:24 +0000 |
commit | a903e9ba4607ceb4304948deedefe3058049498a (patch) | |
tree | 76ed0145506e9b7ebd9eca178d3e2e23cb7f25be /include | |
parent | 1e8d3393a36a84aab41cf56d6daca029d4ac3f43 (diff) |
syslog.h: allow prioritynames[]/facilitynames[] to be defined const
(selectable by #defining SYSLOG_NAMES_CONST)
Diffstat (limited to 'include')
-rw-r--r-- | include/sys/syslog.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sys/syslog.h b/include/sys/syslog.h index cbbc31e19..e8fc4e71e 100644 --- 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 }, |