]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wpa_cli: Fix cred_fields[] declaration
authorJouni Malinen <j@w1.fi>
Sat, 3 Feb 2018 10:08:09 +0000 (12:08 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 3 Feb 2018 10:08:09 +0000 (12:08 +0200)
This was supposed to be an array of const-pointers to const-char; not
something duplicating const for char and resulting in compiler warnings
with more recent gcc versions.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/wpa_cli.c

index 7d2d6acd09988c850a55e9b90bb8d177653aa204..17f1e61a88bfafe20b1cad67c23598fc4f1928fe 100644 (file)
@@ -1538,7 +1538,7 @@ static int wpa_cli_cmd_remove_cred(struct wpa_ctrl *ctrl, int argc,
 }
 
 
-static const char const *cred_fields[] = {
+static const char * const cred_fields[] = {
        "temporary", "priority", "sp_priority", "pcsc", "eap",
        "update_identifier", "min_dl_bandwidth_home", "min_ul_bandwidth_home",
        "min_dl_bandwidth_roaming", "min_ul_bandwidth_roaming", "max_bss_load",