projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
042da42
)
kconfig: constify long_opts
author
Masahiro Yamada
<masahiroy@kernel.org>
Fri, 28 May 2021 17:13:21 +0000
(
02:13
+0900)
committer
Masahiro 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
patch
|
blob
|
history
diff --git
a/scripts/kconfig/conf.c
b/scripts/kconfig/conf.c
index
bfa1ea8
..
5d84b44
100644
(file)
--- 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},