]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
LOG_SYSLOG_OPTS and LOG_SYSLOG_FACILITY can set these syslog
authorRoy Marples <roy@marples.name>
Sun, 9 Apr 2017 07:57:06 +0000 (08:57 +0100)
committerRoy Marples <roy@marples.name>
Sun, 9 Apr 2017 07:57:06 +0000 (08:57 +0100)
options for openlog(3) at compile time.

src/logerr.c

index 06f07a9c6b42bbd0676117deb66e2dc3270a41ca..4d22a1c16bffe3a29f07785b37f017fa6f2041ec 100644 (file)
 
 #include "logerr.h"
 
-#ifndef        LOGERR_FACILITY
-#define        LOGERR_FACILITY LOG_DAEMON
+#ifndef        LOGERR_SYSLOG_FACILITY
+#define        LOGERR_SYSLOG_FACILITY  LOG_DAEMON
 #endif
-#ifndef        LOGERR_OPTS
-#define        LOGERR_OPTS     LOG_PID
+#ifndef        LOGERR_SYSLOG_OPTS
+#define        LOGERR_SYSLOG_OPTS      LOG_PID
 #endif
 
 struct logctx {
@@ -209,7 +209,7 @@ logopen(const char *path)
 {
 
        if (path == NULL) {
-               openlog(NULL, LOGERR_OPTS, LOGERR_FACILITY);
+               openlog(NULL, LOGERR_SYSLOG_OPTS, LOGERR_SYSLOG_FACILITY);
                return 1;
        }