summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2015-11-04 14:47:02 +0000
committermillert <millert@openbsd.org>2015-11-04 14:47:02 +0000
commit5aa32efb72188046c1a445a9179fa36cac5a7fe5 (patch)
treeb6c546ea8c4d8bfaa4fd5e90956c1101db4104e5
parentChange some globals from extern to static when they are not used (diff)
downloadwireguard-openbsd-5aa32efb72188046c1a445a9179fa36cac5a7fe5.tar.xz
wireguard-openbsd-5aa32efb72188046c1a445a9179fa36cac5a7fe5.zip
Remove unused LogFD variable
-rw-r--r--usr.sbin/cron/misc.c7
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;
}