pluto: Avoid hiding outer parameter.

This commit is contained in:
Tobias Brunner 2011-04-14 17:48:07 +02:00
parent 33c9e8b28d
commit 7223229924
1 changed files with 6 additions and 6 deletions

View File

@ -337,16 +337,16 @@ open_peerlog(connection_t *c)
/* copy IP address, turning : and . into / */
{
char c, *p, *q;
char ch, *p, *q;
p = peername;
q = dname;
do {
c = *p++;
if (c == '.' || c == ':')
c = '/';
*q++ = c;
} while (c != '\0');
ch = *p++;
if (ch == '.' || ch == ':')
ch = '/';
*q++ = ch;
} while (ch != '\0');
}
lf_len = peernamelen * 2