]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wpa_cli: Fix compiler warnings on unused functions
authorJouni Malinen <j@w1.fi>
Thu, 3 Nov 2011 16:02:28 +0000 (18:02 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 3 Nov 2011 16:02:28 +0000 (18:02 +0200)
Some of the parameter completion functions are only used if
CONFIG_P2P=y.

Signed-hostap: Jouni Malinen <j@w1.fi>

wpa_supplicant/wpa_cli.c

index 4538ee37f77decdaa904d571479232693888d629..f14906cbef6f3c4bb230c5a0b39f036046c5c8fd 100644 (file)
@@ -184,6 +184,7 @@ static void cli_txt_list_del_addr(struct dl_list *txt_list, const char *txt)
 }
 
 
+#ifdef CONFIG_P2P
 static void cli_txt_list_del_word(struct dl_list *txt_list, const char *txt)
 {
        const char *end;
@@ -199,6 +200,7 @@ static void cli_txt_list_del_word(struct dl_list *txt_list, const char *txt)
        cli_txt_list_del(txt_list, buf);
        os_free(buf);
 }
+#endif /* CONFIG_P2P */
 
 
 static int cli_txt_list_add(struct dl_list *txt_list, const char *txt)
@@ -220,6 +222,7 @@ static int cli_txt_list_add(struct dl_list *txt_list, const char *txt)
 }
 
 
+#ifdef CONFIG_P2P
 static int cli_txt_list_add_addr(struct dl_list *txt_list, const char *txt)
 {
        u8 addr[ETH_ALEN];
@@ -248,6 +251,7 @@ static int cli_txt_list_add_word(struct dl_list *txt_list, const char *txt)
        os_free(buf);
        return ret;
 }
+#endif /* CONFIG_P2P */
 
 
 static char ** cli_txt_list_array(struct dl_list *txt_list)