Skip to content

Commit

Permalink
kconfig: constify long_opts
Browse files Browse the repository at this point in the history
getopt_long() does not modify the long_opts structure.

Signed-off-by: Masahiro Yamada <[email protected]>
  • Loading branch information
masahir0y committed Jun 5, 2021
1 parent 042da42 commit 43ac711
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/kconfig/conf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down

0 comments on commit 43ac711

Please sign in to comment.