1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-29 03:17:53 -04:00

[options] option_init const path

This commit is contained in:
Witold Filipczyk 2022-01-29 18:51:45 +01:00
parent a60609d396
commit 314d1a8d09
2 changed files with 3 additions and 3 deletions

View File

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

View File

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