Merge pull request #7568 from idryzhov/fix-naming

lib: fix local variable shadowing global one
This commit is contained in:
Donald Sharp 2020-11-19 19:25:56 -05:00 committed by GitHub
commit c0b76cfe11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -531,8 +531,8 @@ extern int cmd_execute_command(vector, struct vty *,
extern int cmd_execute_command_strict(vector, struct vty *, extern int cmd_execute_command_strict(vector, struct vty *,
const struct cmd_element **); const struct cmd_element **);
extern void cmd_init(int terminal); extern void cmd_init(int terminal);
extern void cmd_init_config_callbacks(void (*start_config)(void), extern void cmd_init_config_callbacks(void (*start_config_cb)(void),
void (*end_config)(void)); void (*end_config_cb)(void));
extern void cmd_terminate(void); extern void cmd_terminate(void);
extern void cmd_exit(struct vty *vty); extern void cmd_exit(struct vty *vty);
extern int cmd_list_cmds(struct vty *vty, int do_permute); extern int cmd_list_cmds(struct vty *vty, int do_permute);

View File

@ -255,11 +255,11 @@ DEFUN_HIDDEN (end_config,
return CMD_SUCCESS; return CMD_SUCCESS;
} }
void cmd_init_config_callbacks(void (*start_config)(void), void cmd_init_config_callbacks(void (*start_config_cb)(void),
void (*end_config)(void)) void (*end_config_cb)(void))
{ {
callback.start_config = start_config; callback.start_config = start_config_cb;
callback.end_config = end_config; callback.end_config = end_config_cb;
} }