From: Ted Lemon Date: Mon, 20 Oct 1997 21:52:36 +0000 (+0000) Subject: Use local quiet flag and also set global quiet_interface_discovery flag with -q option X-Git-Tag: NetBSD_1_3_Alpha~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=632d8396e345df9530effee5e3de3da93f2b37ff;p=thirdparty%2Fdhcp.git Use local quiet flag and also set global quiet_interface_discovery flag with -q option --- diff --git a/server/dhcpd.c b/server/dhcpd.c index 29fb49215..cb60962d3 100644 --- a/server/dhcpd.c +++ b/server/dhcpd.c @@ -42,7 +42,7 @@ #ifndef lint static char ocopyright[] = -"$Id: dhcpd.c,v 1.44 1997/10/20 21:38:03 mellon Exp $ Copyright 1995, 1996 The Internet Software Consortium."; +"$Id: dhcpd.c,v 1.45 1997/10/20 21:52:36 mellon Exp $ Copyright 1995, 1996 The Internet Software Consortium."; #endif static char copyright[] = @@ -73,7 +73,6 @@ int log_perror = -1; #else int log_perror = 1; #endif -int quiet_startup; char *path_dhcpd_conf = _PATH_DHCPD_CONF; char *path_dhcpd_db = _PATH_DHCPD_DB; @@ -93,6 +92,7 @@ int main (argc, argv, envp) char pbuf [20]; int daemon = 1; #endif + int quiet = 0; /* Initially, log errors to stderr as well as to syslogd. */ #ifdef SYSLOG_4_2 @@ -150,7 +150,8 @@ int main (argc, argv, envp) cftest = 1; log_perror = -1; } else if (!strcmp (argv [i], "-q")) { - quiet_startup = 1; + quiet = 1; + quiet_interface_discovery = 1; } else if (argv [i][0] == '-') { usage (); } else { @@ -168,7 +169,7 @@ int main (argc, argv, envp) } } - if (!quiet_startup) { + if (!quiet) { note (message); note (copyright); note (arr);