vty: Make the argument const
This commit is contained in:
parent
336f509941
commit
656b129812
|
@ -351,7 +351,7 @@ extern struct cmd_element config_quit_cmd;
|
|||
extern struct cmd_element config_help_cmd;
|
||||
extern struct cmd_element config_list_cmd;
|
||||
char *host_config_file();
|
||||
void host_config_set(char *);
|
||||
void host_config_set(const char *);
|
||||
|
||||
void print_version(const char *);
|
||||
|
||||
|
|
|
@ -3311,7 +3311,7 @@ DEFUN(no_banner_motd,
|
|||
}
|
||||
|
||||
/* Set config filename. Called from vty.c */
|
||||
void host_config_set(char *filename)
|
||||
void host_config_set(const char *filename)
|
||||
{
|
||||
host.config = talloc_strdup(tall_vty_ctx, filename);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue