1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[config] Some const

This commit is contained in:
Witold Filipczyk 2022-01-30 14:32:48 +01:00
parent 0563cf3418
commit 94a3c6326b
2 changed files with 6 additions and 6 deletions

View File

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

View File

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