Re: [PATCH v2 1/2] wpa_cli: Fix duplicate const warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Feb 04, 2018 at 10:50:36AM +0900, Masashi Honma wrote:
> wpa_cli.c:1541:19: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
>  static const char const *cred_fields[] = {
>                    ^~~~~

That was supposed to be const char * const..

>  static char ** wpa_cli_complete_cred(const char *str, int pos)
>  {
>  	int arg = get_cmd_arg_num(str, pos);
> -	int i, num_fields = ARRAY_SIZE(cred_fields);
> +	const char *fields[] = {

And this is not..

Anyway, like I already indicated in the previous reply, I'll fix the
declaration correctly (the commit is already there in the pending
branch).

-- 
Jouni Malinen                                            PGP id EFC895FA

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux