From 2bc65a6d5b3aa6c33e0322b6bcb786841859262b Mon Sep 17 00:00:00 2001 From: yaworsky Date: Wed, 26 Oct 2005 04:36:39 +0000 Subject: Fixed defaults for message facility and priority in the parser. --- daemon/syslogd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/daemon/syslogd.c b/daemon/syslogd.c index 8d9f906..4c64a83 100644 --- a/daemon/syslogd.c +++ b/daemon/syslogd.c @@ -298,8 +298,8 @@ static gchar* parse_PRI( gchar* msg, int* facility, int* priority ) if( pri > LOG_NFACILITIES * 8 + 7 ) { TRACE_2( "Unidentifiable PRI %d\n", pri ); - *facility = LOG_USER; - *priority = LOG_NOTICE; + *facility = LOG_FAC( LOG_USER ); + *priority = LOG_PRI( LOG_NOTICE ); } else { @@ -312,8 +312,8 @@ static gchar* parse_PRI( gchar* msg, int* facility, int* priority ) return msg; no_pri: - *facility = LOG_USER; - *priority = LOG_NOTICE; + *facility = LOG_FAC( LOG_USER ); + *priority = LOG_PRI( LOG_NOTICE ); TRACE_LEAVE( "done; message contains no PRI\n" ); return msg; } -- cgit v1.2.3