diff options
author | 2015-10-29 21:17:47 +0000 | |
---|---|---|
committer | 2015-10-29 21:17:47 +0000 | |
commit | 5533f29fb6a83fa239d944732314f7dc8c7dae5b (patch) | |
tree | 79e276b47ab1a23b0910ec5e9b8398ff71a1455e | |
parent | I assume KRANDOM was the previous name for FFRAND. KRANDOM is not in (diff) | |
download | wireguard-openbsd-5533f29fb6a83fa239d944732314f7dc8c7dae5b.tar.xz wireguard-openbsd-5533f29fb6a83fa239d944732314f7dc8c7dae5b.zip |
Remove useless FACILITY define and use LOG_CRON directly.
Remove unneeded limits.h include.
-rw-r--r-- | usr.sbin/cron/misc.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/usr.sbin/cron/misc.c b/usr.sbin/cron/misc.c index 6073dd81db4..625e9ffa579 100644 --- a/usr.sbin/cron/misc.c +++ b/usr.sbin/cron/misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: misc.c,v 1.60 2015/10/26 15:16:30 millert Exp $ */ +/* $OpenBSD: misc.c,v 1.61 2015/10/29 21:17:47 millert Exp $ */ /* Copyright 1988,1990,1993,1994 by Paul Vixie * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC") @@ -18,18 +18,8 @@ */ #include "cron.h" -#include <limits.h> - -#if defined(LOG_DAEMON) && !defined(LOG_CRON) -# define LOG_CRON LOG_DAEMON -#endif - -#ifndef FACILITY -#define FACILITY LOG_CRON -#endif static int LogFD = -1; - static int syslog_open = FALSE; int @@ -272,7 +262,7 @@ log_it(const char *username, pid_t xpid, const char *event, const char *detail) "END EDIT", "LIST", "MAIL", "RELOAD", "REPLACE", "STARTUP", NULL }; if (!syslog_open) { - openlog(ProgramName, LOG_PID, FACILITY); + openlog(ProgramName, LOG_PID, LOG_CRON); syslog_open = TRUE; /* assume openlog success */ } |