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

Jouni Malinen j at w1.fi
Sun Feb 4 01:59:53 PST 2018


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



More information about the Hostap mailing list