mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[options] option_init const path
This commit is contained in:
parent
a60609d396
commit
314d1a8d09
@ -74,7 +74,7 @@ static struct option options_root = INIT_OPTION(
|
||||
struct option *config_options;
|
||||
struct option *cmdline_options;
|
||||
|
||||
static void add_opt_rec(struct option *, char *, struct option *);
|
||||
static void add_opt_rec(struct option *, const char *, struct option *);
|
||||
static void free_options_tree(LIST_OF(struct option) *, int recursive);
|
||||
|
||||
#ifdef CONFIG_DEBUG
|
||||
@ -443,7 +443,7 @@ append:
|
||||
/** Add option to tree.
|
||||
* @relates option */
|
||||
static void
|
||||
add_opt_rec(struct option *tree, char *path, struct option *option)
|
||||
add_opt_rec(struct option *tree, const char *path, struct option *option)
|
||||
{
|
||||
int abi = 0;
|
||||
|
||||
|
@ -415,7 +415,7 @@ do { \
|
||||
struct option_init {
|
||||
/** The name of the option tree where the option should be
|
||||
* registered. option.root is computed from this. */
|
||||
char *path;
|
||||
const char *path;
|
||||
|
||||
/** The name of the option. This goes to option.name. */
|
||||
const char *name;
|
||||
|
Loading…
Reference in New Issue
Block a user