On Fri, Mar 17, 2017 at 02:09:35AM +0100, Alexander Bluhm wrote:
> This is the next step for refactoring internal syslogd(8) logging.

Here is my final diff for now, thanks for all the reviews.

The variable Startup is not used anymore and can be deleted.  The
functionality has moved into log_setdebug().

ok?

bluhm

Index: usr.sbin/syslogd/syslogd.c
===================================================================
RCS file: /cvs/src/usr.sbin/syslogd/syslogd.c,v
retrieving revision 1.239
diff -u -p -r1.239 syslogd.c
--- usr.sbin/syslogd/syslogd.c  5 Apr 2017 21:55:31 -0000       1.239
+++ usr.sbin/syslogd/syslogd.c  5 Apr 2017 21:59:46 -0000
@@ -202,7 +202,6 @@ int nunix;                  /* Number of Unix domain so
 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 &&
Index: usr.sbin/syslogd/syslogd.h
===================================================================
RCS file: /cvs/src/usr.sbin/syslogd/syslogd.h,v
retrieving revision 1.29
diff -u -p -r1.29 syslogd.h
--- usr.sbin/syslogd/syslogd.h  5 Apr 2017 21:55:31 -0000       1.29
+++ usr.sbin/syslogd/syslogd.h  5 Apr 2017 21:59:46 -0000
@@ -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;

Reply via email to