From 79a54ab9f65448a9f3f8f149da5379614ad7bdca Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 19 Dec 2016 22:14:07 +0200 Subject: [PATCH] eap_proxy: Fix eap_proxy_init() prototype to use const eapol_cb The eapol_cb structure was made const and that change resulted in a compilation warning/error if CONFIG_EAP_PROXY= is enabled in the wpa_supplicant build configuration. Fix this by updating the function prototype to match the change. Note: This results in a change needed to external eap_proxy_*.c implementations to match the change. Signed-off-by: Jouni Malinen --- src/eap_peer/eap_proxy.h | 2 +- src/eap_peer/eap_proxy_dummy.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/eap_peer/eap_proxy.h b/src/eap_peer/eap_proxy.h index 23cdbe698..7205fad44 100644 --- a/src/eap_peer/eap_proxy.h +++ b/src/eap_peer/eap_proxy.h @@ -20,7 +20,7 @@ enum eap_proxy_status { }; struct eap_proxy_sm * -eap_proxy_init(void *eapol_ctx, struct eapol_callbacks *eapol_cb, +eap_proxy_init(void *eapol_ctx, const struct eapol_callbacks *eapol_cb, void *msg_ctx); void eap_proxy_deinit(struct eap_proxy_sm *eap_proxy); diff --git a/src/eap_peer/eap_proxy_dummy.c b/src/eap_peer/eap_proxy_dummy.c index d84f01234..08009cab2 100644 --- a/src/eap_peer/eap_proxy_dummy.c +++ b/src/eap_peer/eap_proxy_dummy.c @@ -12,7 +12,7 @@ #include "eap_proxy.h" struct eap_proxy_sm * -eap_proxy_init(void *eapol_ctx, struct eapol_callbacks *eapol_cb, +eap_proxy_init(void *eapol_ctx, const struct eapol_callbacks *eapol_cb, void *msg_ctx) { return NULL;