1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

[options] const in add_opt

This commit is contained in:
Witold Filipczyk 2022-01-30 17:27:11 +01:00
parent b5c4addbbe
commit 9bbe2eb4ed
2 changed files with 4 additions and 4 deletions

View File

@ -508,8 +508,8 @@ init_option_listbox_item(struct option *option)
/*! @relates option */
struct option *
add_opt(struct option *tree, char *path, char *capt,
char *name, option_flags_T flags, enum option_type type,
add_opt(struct option *tree, const char *path, const char *capt,
const char *name, option_flags_T flags, enum option_type type,
long min, long max, longptr_T value, char *desc)
{
struct option *option = (struct option *)mem_calloc(1, sizeof(*option));

View File

@ -336,8 +336,8 @@ extern union option_value *get_opt_(struct option *, const char *, struct sessio
#define get_cmd_opt_color(name) get_opt_color_tree(cmdline_options, name, NULL)
#define get_cmd_opt_tree(name) get_opt_tree_tree(cmdline_options, name, NULL)
extern struct option *add_opt(struct option *, char *, char *,
char *, option_flags_T, enum option_type,
extern struct option *add_opt(struct option *, const char *, const char *,
const char *, option_flags_T, enum option_type,
long, long, longptr_T, char *);
/** Check whether the character @a c may be used in the name of an