| Submitter | Masashi Honma |
|---|---|
| Date | Feb. 25, 2013, 7:08 a.m. |
| Message ID | <CAFk-A4k18fH_6dQiZiN1=K6muVocESk5A+ecy6XN9V2cPK_M1Q@mail.gmail.com> |
| Download | mbox | patch |
| Permalink | /patch/222854/ |
| State | Accepted |
| Commit | ccc95a6eab3704189d5d984406266fc8fd1b2b49 |
| Headers | show |
Comments
On Mon, Feb 25, 2013 at 04:08:26PM +0900, Masashi Honma wrote: > 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] Thanks, applied.
Patch
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;