summaryrefslogtreecommitdiffstats
path: root/scripts/kconfig
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2021-05-28 19:13:21 +0200
committerMasahiro Yamada <masahiroy@kernel.org>2021-06-05 16:49:46 +0200
commit43ac711053fc6d94a3f16141c4efe20059a9d918 (patch)
treea150498f8f58f3da8e05937efc1e73a0bd29acee /scripts/kconfig
parentscripts/setlocalversion: simplify the short version part (diff)
downloadlinux-43ac711053fc6d94a3f16141c4efe20059a9d918.tar.xz
linux-43ac711053fc6d94a3f16141c4efe20059a9d918.zip
kconfig: constify long_opts
getopt_long() does not modify the long_opts structure. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/kconfig')
-rw-r--r--scripts/kconfig/conf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c
index bfa1ea8f5f98..5d84b44a2a2a 100644
--- a/scripts/kconfig/conf.c
+++ b/scripts/kconfig/conf.c
@@ -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},