mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-22 20:56:39 +00:00
Eliminate a bunch of shadow warnings.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@358647 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -958,9 +958,9 @@ static int gtalk_create_candidates(struct gtalk *client, struct gtalk_pvt *p, ch
|
||||
/* put the initiator attribute to lower case if we receive the call
|
||||
* otherwise GoogleTalk won't establish the session */
|
||||
if (!p->initiator) {
|
||||
char c;
|
||||
char cur;
|
||||
char *t = lowerfrom = ast_strdupa(from);
|
||||
while (((c = *t) != '/') && (*t++ = tolower(c)));
|
||||
while (((cur = *t) != '/') && (*t++ = tolower(cur)));
|
||||
}
|
||||
iks_insert_attrib(gtalk, "initiator", (p->initiator) ? to : lowerfrom);
|
||||
iks_insert_attrib(gtalk, "xmlns", GOOGLE_NS);
|
||||
|
||||
Reference in New Issue
Block a user