From: Toby Gray Date: Fri, 10 Oct 2014 16:35:27 +0000 (+0100) Subject: Make wpa_ctrl_get_remote_ifname declaration conditional. X-Git-Tag: hostap_2_4~1328 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3cea004d3cce29c68a105ba1153a23e9040c898d;p=thirdparty%2Fhostap.git Make wpa_ctrl_get_remote_ifname declaration conditional. The definition of wpa_ctrl_get_remote_ifname is conditional on CONFIG_CTRL_IFACE_UDP. This change makes the header declaration of this function also conditional on the same define. Signed-off-by: Toby Gray --- diff --git a/src/common/wpa_ctrl.h b/src/common/wpa_ctrl.h index 4812f8df8..e4619a7d5 100644 --- a/src/common/wpa_ctrl.h +++ b/src/common/wpa_ctrl.h @@ -383,8 +383,6 @@ int wpa_ctrl_pending(struct wpa_ctrl *ctrl); */ int wpa_ctrl_get_fd(struct wpa_ctrl *ctrl); -char * wpa_ctrl_get_remote_ifname(struct wpa_ctrl *ctrl); - #ifdef ANDROID /** * wpa_ctrl_cleanup() - Delete any local UNIX domain socket files that @@ -402,6 +400,8 @@ void wpa_ctrl_cleanup(void); #define WPA_CTRL_IFACE_PORT_LIMIT 50 /* decremented from start */ #define WPA_GLOBAL_CTRL_IFACE_PORT 9878 #define WPA_GLOBAL_CTRL_IFACE_PORT_LIMIT 20 /* incremented from start */ + +char * wpa_ctrl_get_remote_ifname(struct wpa_ctrl *ctrl); #endif /* CONFIG_CTRL_IFACE_UDP */