aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2009-06-29 18:26:48 (GMT)
committerJouni Malinen <j@w1.fi>2009-11-22 18:18:15 (GMT)
commit6a87e10383d636fa9bcfec9d8545fda4b0a6649b (patch)
tree544c9541b232547c8bef499a4eaf32c9a9e6e135 /src
parent321a1b7081eb3d1859ffec0b0602c8d35081d8c3 (diff)
downloadhostap-06-6a87e10383d636fa9bcfec9d8545fda4b0a6649b.zip
hostap-06-6a87e10383d636fa9bcfec9d8545fda4b0a6649b.tar.gz
hostap-06-6a87e10383d636fa9bcfec9d8545fda4b0a6649b.tar.bz2
Rename variable to avoid gcc warning about shadowed names
(cherry picked from commit 2b16c01c4e9ae01f2d09457ac8aaeed99e57f276)
Diffstat (limited to 'src')
-rw-r--r--src/hlr_auc_gw/hlr_auc_gw.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/hlr_auc_gw/hlr_auc_gw.c b/src/hlr_auc_gw/hlr_auc_gw.c
index 3d914e6..5ff4e44 100644
--- a/src/hlr_auc_gw/hlr_auc_gw.c
+++ b/src/hlr_auc_gw/hlr_auc_gw.c
@@ -532,7 +532,7 @@ static void aka_req_auth(int s, struct sockaddr_un *from, socklen_t fromlen,
static void aka_auts(int s, struct sockaddr_un *from, socklen_t fromlen,
char *imsi)
{
- char *auts, *rand;
+ char *auts, *__rand;
u8 _auts[EAP_AKA_AUTS_LEN], _rand[EAP_AKA_RAND_LEN], sqn[6];
struct milenage_parameters *m;
@@ -543,14 +543,14 @@ static void aka_auts(int s, struct sockaddr_un *from, socklen_t fromlen,
return;
*auts++ = '\0';
- rand = strchr(auts, ' ');
+ __rand = strchr(auts, ' ');
if (rand == NULL)
return;
- *rand++ = '\0';
+ *__rand++ = '\0';
- printf("AKA-AUTS: IMSI=%s AUTS=%s RAND=%s\n", imsi, auts, rand);
+ printf("AKA-AUTS: IMSI=%s AUTS=%s RAND=%s\n", imsi, auts, __rand);
if (hexstr2bin(auts, _auts, EAP_AKA_AUTS_LEN) ||
- hexstr2bin(rand, _rand, EAP_AKA_RAND_LEN)) {
+ hexstr2bin(__rand, _rand, EAP_AKA_RAND_LEN)) {
printf("Could not parse AUTS/RAND\n");
return;
}