summaryrefslogtreecommitdiff
path: root/syslogd/logfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'syslogd/logfile.c')
-rw-r--r--syslogd/logfile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/syslogd/logfile.c b/syslogd/logfile.c
index a59f7e7..5687750 100644
--- a/syslogd/logfile.c
+++ b/syslogd/logfile.c
@@ -25,7 +25,7 @@
#include "logfile.h"
-logfile_t *logfile_create(const char *name)
+logfile_t *logfile_create(const char *name, int facility)
{
logfile_t *file;
@@ -36,6 +36,7 @@ logfile_t *logfile_create(const char *name)
}
strcpy(file->name, name);
+ file->facility = facility;
file->fd = open(file->name, O_WRONLY | O_CREAT, 0640);
if (file->fd < 0)