From 314d1a8d097ea7f492371e3aa211a08bf5442f5a Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Sat, 29 Jan 2022 18:51:45 +0100 Subject: [PATCH] [options] option_init const path --- src/config/options.c | 4 ++-- src/config/options.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config/options.c b/src/config/options.c index df41821d..79b89c82 100644 --- a/src/config/options.c +++ b/src/config/options.c @@ -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; diff --git a/src/config/options.h b/src/config/options.h index c52376da..7bb8075e 100644 --- a/src/config/options.h +++ b/src/config/options.h @@ -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;