From: Jouni Malinen Date: Fri, 27 Sep 2013 20:42:37 +0000 (+0300) Subject: Get rid of compiler warning in no-CONFIG_CTRL_IFACE builds X-Git-Tag: hostap_2_1~910 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=298f51857df5c5e8162eda2ab83898ee855de4f6;p=thirdparty%2Fhostap.git Get rid of compiler warning in no-CONFIG_CTRL_IFACE builds 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 --- diff --git a/wpa_supplicant/config.c b/wpa_supplicant/config.c index f7ce80211..f8ebc0dee 100644 --- a/wpa_supplicant/config.c +++ b/wpa_supplicant/config.c @@ -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