diff --git a/src/config/conf.c b/src/config/conf.c index 5cde3f11..92fd7d12 100644 --- a/src/config/conf.c +++ b/src/config/conf.c @@ -567,7 +567,7 @@ parse_bind(struct option *opt_tree, struct conf_parsing_state *state, return err; } -static int load_config_file(char *, char *, struct option *, +static int load_config_file(const char *, const char *, struct option *, struct string *, int); static enum parse_error @@ -686,7 +686,7 @@ parse_config_exmode_command(char *cmd) } void -parse_config_file(struct option *options, char *name, +parse_config_file(struct option *options, const char *name, char *file, struct string *mirror, int is_system_conf) { @@ -795,7 +795,7 @@ read_config_file(char *name) /* Return 0 on success. */ static int -load_config_file(char *prefix, char *name, +load_config_file(const char *prefix, const char *name, struct option *options, struct string *mirror, int is_system_conf) { @@ -1138,7 +1138,7 @@ get_me_out: } char * -create_config_string(char *prefix, char *name) +create_config_string(const char *prefix, const char *name) { struct option *options = config_options; struct string config; diff --git a/src/config/conf.h b/src/config/conf.h index 7cb1d946..c11386af 100644 --- a/src/config/conf.h +++ b/src/config/conf.h @@ -21,12 +21,12 @@ void load_config(void); #ifdef CONFIG_EXMODE enum parse_error parse_config_exmode_command(char *cmd); #endif -void parse_config_file(struct option *options, char *name, +void parse_config_file(struct option *options, const char *name, char *file, struct string *mirror, int is_system_conf); int write_config(struct terminal *); -char *create_config_string(char *prefix, char *name); +char *create_config_string(const char *prefix, const char *name); char *create_about_config_string(void); void set_option_or_save(const char *str);