[PATCH] Interworking: Remove unused variable warnings

Masashi Honma masashi.honma
Sun Feb 24 23:08:26 PST 2013


This patch removes these warnings.

interworking.c: In function 'interworking_credentials_available_3gpp':
interworking.c:1330:6: warning: unused variable 'ret' [-Wunused-variable]
interworking.c:1329:19: warning: unused variable 'cred' [-Wunused-variable]

Signed-hostap: Masashi Honma <masashi.honma at gmail.com>

diff --git a/wpa_supplicant/interworking.c b/wpa_supplicant/interworking.c
index 3602b07..6fe762f 100644
--- a/wpa_supplicant/interworking.c
+++ b/wpa_supplicant/interworking.c
@@ -1326,10 +1326,11 @@ fail:
 static struct wpa_cred * interworking_credentials_available_3gpp(
     struct wpa_supplicant *wpa_s, struct wpa_bss *bss)
 {
-    struct wpa_cred *cred, *selected = NULL;
+    struct wpa_cred *selected = NULL;
+#ifdef INTERWORKING_3GPP
+    struct wpa_cred *cred;
     int ret;

-#ifdef INTERWORKING_3GPP
     if (bss->anqp == NULL || bss->anqp->anqp_3gpp == NULL)
         return NULL;


Regards,
Masashi Honma.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.shmoo.com/pipermail/hostap/attachments/20130225/98d42730/attachment.htm 



More information about the Hostap mailing list