summaryrefslogtreecommitdiff
path: root/lib/command.c
diff options
context:
space:
mode:
authorajs <ajs>2004-11-23 17:35:08 +0000
committerajs <ajs>2004-11-23 17:35:08 +0000
commitd246bd965898f0ba6781f2b2048af9a5eba079d3 (patch)
tree80ed32d986e3845d041cc2bc08bcc2b03a8ec75d /lib/command.c
parent8686fc746cad9fda26812c88df5faaff0f418650 (diff)
2004-11-23 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* log.c: (vzlog) Take a single va_list argument and use va_copy as necessary for multiple traversals. (zlog) Pass only one va_list to vzlog. (zlog_*,plog_*) Use a macro for boilerplate code; pass only one va_list to vzlog. (zlog_set_file) Remove unused 2nd argument (flags). (zlog_save_cwd,zlog_get_cwd,zlog_free_cwd) Remove unused functions. * log.h: Remove ZLOG_*_INDEX defines (no longer used). Remove unused 2nd argument from zlog_set_file prototype. Fix prototype for zlog_rotate. * command.c: (config_log_file) Remove unused 2nd arg to zlog_set_file. * vty.c: (vty_out) Fix stdarg usage to perform multiple traversals properly. (vty_log) Must use va_copy for multiple traversals of va_list arg.
Diffstat (limited to 'lib/command.c')
-rw-r--r--lib/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/command.c b/lib/command.c
index 6c02c96e..60b0124d 100644
--- a/lib/command.c
+++ b/lib/command.c
@@ -3017,7 +3017,7 @@ DEFUN (config_log_file,
else
fullpath = argv[0];
- ret = zlog_set_file (NULL, ZLOG_FILE, fullpath);
+ ret = zlog_set_file (NULL, fullpath);
if (p)
XFREE (MTYPE_TMP, p);