]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Get rid of compiler warning in no-CONFIG_CTRL_IFACE builds
authorJouni Malinen <j@w1.fi>
Fri, 27 Sep 2013 20:42:37 +0000 (23:42 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 27 Sep 2013 20:42:37 +0000 (23:42 +0300)
no_ctrl_interface parsing was declared within ifdef CONFIG_CTRL_IFACE
block, so the parser function needs to be marked similarly.

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

wpa_supplicant/config.c

index f7ce80211d9b582266c54f1682e93609ddea25d5..f8ebc0dee8518d4502a0a6bf959ea78a4c37cae1 100644 (file)
@@ -3082,6 +3082,7 @@ static int wpa_config_process_ap_vendor_elements(
 }
 
 
+#ifdef CONFIG_CTRL_IFACE
 static int wpa_config_process_no_ctrl_interface(
        const struct global_parse_data *data,
        struct wpa_config *config, int line, const char *pos)
@@ -3091,6 +3092,7 @@ static int wpa_config_process_no_ctrl_interface(
        config->ctrl_interface = NULL;
        return 0;
 }
+#endif /* CONFIG_CTRL_IFACE */
 
 
 #ifdef OFFSET