lkml.org 
[lkml]   [2021]   [Jun]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] kconfig: constify long_opts
On Sat, May 29, 2021 at 2:13 AM Masahiro Yamada <masahiroy@kernel.org> wrote:
>
> getopt_long() does not modify the logopts structure.
>
> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
> ---


Applied to linux-kbuild.


> scripts/kconfig/conf.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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},
> --
> 2.27.0
>


--
Best Regards
Masahiro Yamada

\
 
 \ /
  Last update: 2021-06-05 16:51    [W:0.386 / U:0.560 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site