lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAK7LNAQdUtUwuZdx6PfxVtnwZ9Yzde24xv2d7C_xjuYMUmRQxg@mail.gmail.com>
Date:   Sat, 5 Jun 2021 23:50:11 +0900
From:   Masahiro Yamada <masahiroy@...nel.org>
To:     Linux Kbuild mailing list <linux-kbuild@...r.kernel.org>
Cc:     Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] kconfig: constify long_opts

On Sat, May 29, 2021 at 2:13 AM Masahiro Yamada <masahiroy@...nel.org> wrote:
>
> getopt_long() does not modify the logopts structure.
>
> Signed-off-by: Masahiro Yamada <masahiroy@...nel.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ