From: Roy Marples Date: Sun, 9 Apr 2017 07:57:06 +0000 (+0100) Subject: LOG_SYSLOG_OPTS and LOG_SYSLOG_FACILITY can set these syslog X-Git-Tag: v7.0.0-beta3~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e5b7e7ae5095abcc0129cd97a9ff846e667379e;p=thirdparty%2Fdhcpcd.git LOG_SYSLOG_OPTS and LOG_SYSLOG_FACILITY can set these syslog options for openlog(3) at compile time. --- diff --git a/src/logerr.c b/src/logerr.c index 06f07a9c..4d22a1c1 100644 --- a/src/logerr.c +++ b/src/logerr.c @@ -34,11 +34,11 @@ #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; }