aboutsummaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authoryaworsky <yaworsky>2005-10-26 04:36:39 +0000
committeryaworsky <yaworsky>2005-10-26 04:36:39 +0000
commit2bc65a6d5b3aa6c33e0322b6bcb786841859262b (patch)
treecaf8d8bca68eca3b7f85756486dccb36dc96b06a /daemon
parenta69ef612d347edc20e23af2539264af8b0ca36fe (diff)
downloadsyslog-win32-2bc65a6d5b3aa6c33e0322b6bcb786841859262b.tar.gz
syslog-win32-2bc65a6d5b3aa6c33e0322b6bcb786841859262b.tar.xz
syslog-win32-2bc65a6d5b3aa6c33e0322b6bcb786841859262b.zip
Fixed defaults for message facility and priority in the parser.
Diffstat (limited to 'daemon')
-rw-r--r--daemon/syslogd.c8
1 files 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;
}