aboutsummaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
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;
}