kconfig: constify long_opts

getopt_long() does not modify the long_opts structure.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
This commit is contained in:
Masahiro Yamada
2021-05-29 02:13:21 +09:00
parent 042da426f8
commit 43ac711053

View File

@@ -678,7 +678,7 @@ static void check_conf(struct menu *menu)
check_conf(child); check_conf(child);
} }
static struct option long_opts[] = { static const struct option long_opts[] = {
{"help", no_argument, NULL, 'h'}, {"help", no_argument, NULL, 'h'},
{"silent", no_argument, NULL, 's'}, {"silent", no_argument, NULL, 's'},
{"oldaskconfig", no_argument, &input_mode_opt, oldaskconfig}, {"oldaskconfig", no_argument, &input_mode_opt, oldaskconfig},