summaryrefslogtreecommitdiff
path: root/lib/command.h
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2020-11-20 00:41:50 +0300
committerIgor Ryzhov <iryzhov@nfware.com>2020-11-20 00:53:34 +0300
commit62b439624bbba0a926822a3bd8a17d3a76881240 (patch)
tree9f54c7abd9a55aff9ce96cbf49b616ff2d54c858 /lib/command.h
parent38a0ce9146075c965599cc9c12987b98d64fccd6 (diff)
lib: fix local variable shadowing global one
start_config and end_config are already used as function names in DEFUN, so the current naming is a little bit confusing. Let's use different names for arguments. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'lib/command.h')
-rw-r--r--lib/command.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/command.h b/lib/command.h
index e529239f65..1b0504101c 100644
--- a/lib/command.h
+++ b/lib/command.h
@@ -531,8 +531,8 @@ extern int cmd_execute_command(vector, struct vty *,
extern int cmd_execute_command_strict(vector, struct vty *,
const struct cmd_element **);
extern void cmd_init(int terminal);
-extern void cmd_init_config_callbacks(void (*start_config)(void),
- void (*end_config)(void));
+extern void cmd_init_config_callbacks(void (*start_config_cb)(void),
+ void (*end_config_cb)(void));
extern void cmd_terminate(void);
extern void cmd_exit(struct vty *vty);
extern int cmd_list_cmds(struct vty *vty, int do_permute);