aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2009-03-25 09:36:09 (GMT)
committerJouni Malinen <j@w1.fi>2009-04-20 08:46:05 (GMT)
commit3d5c085e5c73d606952bc085e606064826eebdfa (patch)
treef5909d1b2fc7f117a5583d5453d28639327ffbdb
parent5cf40d9bfc1b5e4abbf43fc6106b18245a7b5855 (diff)
downloadhostap-06-3d5c085e5c73d606952bc085e606064826eebdfa.zip
hostap-06-3d5c085e5c73d606952bc085e606064826eebdfa.tar.gz
hostap-06-3d5c085e5c73d606952bc085e606064826eebdfa.tar.bz2
Remove local variable shadowing to avoid a warning
(cherry picked from commit 17449e213f03faccf4b1459732f39188ee223f00)
-rw-r--r--hostapd/wps_hostapd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/hostapd/wps_hostapd.c b/hostapd/wps_hostapd.c
index d000999..8c39210 100644
--- a/hostapd/wps_hostapd.c
+++ b/hostapd/wps_hostapd.c
@@ -219,13 +219,13 @@ static int hostapd_wps_cred_cb(void *ctx, const struct wps_credential *cred)
if ((hapd->conf->wps_cred_processing == 1 ||
hapd->conf->wps_cred_processing == 2) && cred->cred_attr) {
size_t blen = cred->cred_attr_len * 2 + 1;
- char *buf = os_malloc(blen);
- if (buf) {
- wpa_snprintf_hex(buf, blen,
+ char *_buf = os_malloc(blen);
+ if (_buf) {
+ wpa_snprintf_hex(_buf, blen,
cred->cred_attr, cred->cred_attr_len);
wpa_msg(hapd, MSG_INFO, "%s%s",
- WPS_EVENT_NEW_AP_SETTINGS, buf);
- os_free(buf);
+ WPS_EVENT_NEW_AP_SETTINGS, _buf);
+ os_free(_buf);
}
} else
wpa_msg(hapd, MSG_INFO, WPS_EVENT_NEW_AP_SETTINGS);