diff options
author | 2015-11-04 14:47:02 +0000 | |
---|---|---|
committer | 2015-11-04 14:47:02 +0000 | |
commit | 5aa32efb72188046c1a445a9179fa36cac5a7fe5 (patch) | |
tree | b6c546ea8c4d8bfaa4fd5e90956c1101db4104e5 | |
parent | Change some globals from extern to static when they are not used (diff) | |
download | wireguard-openbsd-5aa32efb72188046c1a445a9179fa36cac5a7fe5.tar.xz wireguard-openbsd-5aa32efb72188046c1a445a9179fa36cac5a7fe5.zip |
Remove unused LogFD variable
-rw-r--r-- | usr.sbin/cron/misc.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/usr.sbin/cron/misc.c b/usr.sbin/cron/misc.c index 6b1fc7ad181..200ae4e6ca1 100644 --- a/usr.sbin/cron/misc.c +++ b/usr.sbin/cron/misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: misc.c,v 1.66 2015/10/31 12:19:41 millert Exp $ */ +/* $OpenBSD: misc.c,v 1.67 2015/11/04 14:47:02 millert Exp $ */ /* Copyright 1988,1990,1993,1994 by Paul Vixie * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC") @@ -19,7 +19,6 @@ #include "cron.h" -static int LogFD = -1; static int syslog_open = FALSE; /* get_char(file) : like getc() but increment LineNumber on newlines @@ -130,10 +129,6 @@ log_it(const char *username, pid_t xpid, const char *event, const char *detail) void log_close(void) { - if (LogFD != -1) { - close(LogFD); - LogFD = -1; - } closelog(); syslog_open = FALSE; } |