From edd7c1bfffb831d7841bd1de68488d29ce137caf Mon Sep 17 00:00:00 2001 From: ajs Date: Fri, 3 Dec 2004 17:40:31 +0000 Subject: 2004-12-03 Andrew J. Schorr * command.h: Remove fields log_stdout and log_syslog from struct host, since they are just trying to duplicate information in the zlog_default structure. Note that this fixes a bug since those fields were not registering any logging that was established in the initial call to openzlog (this affects only the zebra and ospf6d daemons). It is probably a bug to turn on any logging by default in the call to openzlog. * command.c: (config_write_host) Get logging info from zlog_default instead of now-removed fields host.log_stdout and host.log_syslog. (config_log_stdout,no_config_log_stdout) Do not set now-removed field host.log_stdout, since this info is recorded in zlog_default. (config_log_file) Use XSTRDUP (instead of strdup) to set host.logfile. (config_log_syslog,config_log_syslog_facility,no_config_log_syslog) Do not set now-removed field host.log_syslog, since this info is recorded in zlog_default. --- lib/command.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'lib/command.h') diff --git a/lib/command.h b/lib/command.h index ceb9c6f5..52cfded9 100644 --- a/lib/command.h +++ b/lib/command.h @@ -46,12 +46,6 @@ struct host /* Log filename. */ char *logfile; - /* Log stdout. */ - u_char log_stdout; - - /* Log syslog. */ - u_char log_syslog; - /* config file name of this host */ char *config; -- cgit v1.2.3