OSDN Git Service

kconfig: constify long_opts
authorMasahiro Yamada <masahiroy@kernel.org>
Fri, 28 May 2021 17:13:21 +0000 (02:13 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 5 Jun 2021 14:49:46 +0000 (23:49 +0900)
getopt_long() does not modify the long_opts structure.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/conf.c

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