aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/interworking.c
diff options
context:
space:
mode:
authorMasashi Honma <masashi.honma@gmail.com>2013-02-28 13:01:09 (GMT)
committerJouni Malinen <j@w1.fi>2013-02-28 14:34:06 (GMT)
commitad5dda82227afc6fec6087b67c6c8a89b1bf2ca3 (patch)
tree11a5721071e813a76c1248db7fb55c155aaef33f /wpa_supplicant/interworking.c
parentaec309c407bab60379392916a48683c98a03b447 (diff)
downloadhostap-ad5dda82227afc6fec6087b67c6c8a89b1bf2ca3.zip
hostap-ad5dda82227afc6fec6087b67c6c8a89b1bf2ca3.tar.gz
hostap-ad5dda82227afc6fec6087b67c6c8a89b1bf2ca3.tar.bz2
Interworking: Remove unused variable warnings
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@gmail.com>
Diffstat (limited to 'wpa_supplicant/interworking.c')
-rw-r--r--wpa_supplicant/interworking.c5
1 files changed, 3 insertions, 2 deletions
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;