summaryrefslogtreecommitdiffstats
path: root/plugins/imklog/imklog.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon>2008-04-09 09:06:40 +0200
committerRainer Gerhards <rgerhards@adiscon>2008-04-09 09:06:40 +0200
commit0b447f310ac057ba59f0238f5bd663c993a823c2 (patch)
treec1497d72a2f36dfbbabeaa4385de002b18232561 /plugins/imklog/imklog.c
parentb0a4df43e4434a1eeb3f23c2c5a4b0cdd2fbddda (diff)
downloadrsyslog-0b447f310ac057ba59f0238f5bd663c993a823c2.tar.gz
rsyslog-0b447f310ac057ba59f0238f5bd663c993a823c2.tar.xz
rsyslog-0b447f310ac057ba59f0238f5bd663c993a823c2.zip
implemented klog driver for BSD
Diffstat (limited to 'plugins/imklog/imklog.c')
-rw-r--r--plugins/imklog/imklog.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/imklog/imklog.c b/plugins/imklog/imklog.c
index 972e93db..7f5c3cec 100644
--- a/plugins/imklog/imklog.c
+++ b/plugins/imklog/imklog.c
@@ -142,13 +142,12 @@ rsRetVal Syslog(int priority, char *fmt, ...)
va_list ap;
char *argl;
- /* Output using syslog. */
+ /* Output using syslog */
if(!strcmp(fmt, "%s")) {
va_start(ap, fmt);
argl = va_arg(ap, char *);
- if (argl[0] == '<' && argl[1] && argl[2] == '>') {
- switch ( argl[1] )
- {
+ if(argl[0] == '<' && argl[1] && argl[2] == '>') {
+ switch(argl[1]) {
case '0':
priority = LOG_EMERG;
break;