summaryrefslogtreecommitdiff
path: root/usr.sbin/cron/misc.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2015-11-04 14:47:03 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2015-11-04 14:47:03 +0000
commit54a4bbb1ac33fab5ffd122af78ad7019bc1f67a2 (patch)
tree12addcebc315a563ac5a7ae4116379065c544b48 /usr.sbin/cron/misc.c
parent61af7a0a62906c3d583101a254e8c031d748ffc3 (diff)
Remove unused LogFD variable
Diffstat (limited to 'usr.sbin/cron/misc.c')
-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;
}