diff options
author | Damien Miller <djm@mindrot.org> | 2002-01-22 23:32:57 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2002-01-22 23:32:57 +1100 |
commit | 5488b7ec4edc06e344f899933cab615d7b925b70 (patch) | |
tree | b4ed84a7bf586b1abf13fe6d02be8fa360cd0c48 /log.c | |
parent | c497e38ce626a35f68844c7667adae6434be7d6c (diff) |
- stevesk@cvs.openbsd.org 2002/01/17 04:27:37
[log.c]
casts to silence enum type warnings for bugzilla bug 37; ok markus@
Diffstat (limited to 'log.c')
-rw-r--r-- | log.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -34,7 +34,7 @@ | |||
34 | */ | 34 | */ |
35 | 35 | ||
36 | #include "includes.h" | 36 | #include "includes.h" |
37 | RCSID("$OpenBSD: log.c,v 1.19 2001/12/19 07:18:56 deraadt Exp $"); | 37 | RCSID("$OpenBSD: log.c,v 1.20 2002/01/17 04:27:37 stevesk Exp $"); |
38 | 38 | ||
39 | #include "log.h" | 39 | #include "log.h" |
40 | #include "xmalloc.h" | 40 | #include "xmalloc.h" |
@@ -68,7 +68,7 @@ static struct { | |||
68 | { "LOCAL5", SYSLOG_FACILITY_LOCAL5 }, | 68 | { "LOCAL5", SYSLOG_FACILITY_LOCAL5 }, |
69 | { "LOCAL6", SYSLOG_FACILITY_LOCAL6 }, | 69 | { "LOCAL6", SYSLOG_FACILITY_LOCAL6 }, |
70 | { "LOCAL7", SYSLOG_FACILITY_LOCAL7 }, | 70 | { "LOCAL7", SYSLOG_FACILITY_LOCAL7 }, |
71 | { NULL, 0 } | 71 | { NULL, (SyslogFacility)0 } |
72 | }; | 72 | }; |
73 | 73 | ||
74 | static struct { | 74 | static struct { |
@@ -85,7 +85,7 @@ static struct { | |||
85 | { "DEBUG1", SYSLOG_LEVEL_DEBUG1 }, | 85 | { "DEBUG1", SYSLOG_LEVEL_DEBUG1 }, |
86 | { "DEBUG2", SYSLOG_LEVEL_DEBUG2 }, | 86 | { "DEBUG2", SYSLOG_LEVEL_DEBUG2 }, |
87 | { "DEBUG3", SYSLOG_LEVEL_DEBUG3 }, | 87 | { "DEBUG3", SYSLOG_LEVEL_DEBUG3 }, |
88 | { NULL, 0 } | 88 | { NULL, (LogLevel)0 } |
89 | }; | 89 | }; |
90 | 90 | ||
91 | static void do_log(LogLevel level, const char *fmt, va_list args); | 91 | static void do_log(LogLevel level, const char *fmt, va_list args); |