vty: Make the argument const

This commit is contained in:
Holger Hans Peter Freyther 2009-08-10 08:09:54 +02:00
parent 336f509941
commit 656b129812
2 changed files with 2 additions and 2 deletions

View File

@ -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 *);

View File

@ -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);
}