From 38815c8e68c4a8eeb286a22188e8c874191e3596 Mon Sep 17 00:00:00 2001 From: bluhm Date: Wed, 5 Apr 2017 22:15:35 +0000 Subject: [PATCH] The global variable Startup is not used anymore and can be deleted. The functionality has moved into log_setdebug(). OK millert@ --- usr.sbin/syslogd/syslogd.c | 4 +--- usr.sbin/syslogd/syslogd.h | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c index 6cedc3fe075..b1df3dabda2 100644 --- a/usr.sbin/syslogd/syslogd.c +++ b/usr.sbin/syslogd/syslogd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: syslogd.c,v 1.239 2017/04/05 21:55:31 bluhm Exp $ */ +/* $OpenBSD: syslogd.c,v 1.240 2017/04/05 22:15:35 bluhm Exp $ */ /* * Copyright (c) 1983, 1988, 1993, 1994 @@ -202,7 +202,6 @@ int nunix; /* Number of Unix domain sockets requested */ char **path_unix; /* Paths to Unix domain sockets */ int Debug; /* debug flag */ int Foreground; /* run in foreground, instead of daemonizing */ -int Startup = 1; /* startup flag */ char LocalHostName[HOST_NAME_MAX+1]; /* our hostname */ char *LocalDomain; /* our local domain name */ int Initialized = 0; /* set when we have initialized ourselves */ @@ -768,7 +767,6 @@ main(int argc, char *argv[]) init(); log_setdebug(0); - Startup = 0; /* Allocate ctl socket reply buffer if we have a ctl socket */ if (fd_ctlsock != -1 && diff --git a/usr.sbin/syslogd/syslogd.h b/usr.sbin/syslogd/syslogd.h index 358c66c5043..dd119f8b007 100644 --- a/usr.sbin/syslogd/syslogd.h +++ b/usr.sbin/syslogd/syslogd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: syslogd.h,v 1.29 2017/04/05 21:55:31 bluhm Exp $ */ +/* $OpenBSD: syslogd.h,v 1.30 2017/04/05 22:15:35 bluhm Exp $ */ /* * Copyright (c) 2003 Anil Madhavapeddy @@ -53,7 +53,6 @@ extern char *path_ctlsock; void vlogmsg(int pri, const char *, const char *, va_list); __dead void die(int); extern int Debug; -extern int Startup; struct ringbuf { char *buf; -- 2.20.1