diff options
author | Tobias Brunner <tobias@strongswan.org> | 2011-04-14 17:48:07 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2011-04-14 18:11:46 +0200 |
commit | 722322992484d65cebb02ea5d5f7f346c0d84063 (patch) | |
tree | 4aff3a41cbe4bdb018109afa76d3d6587e2001e7 /src | |
parent | 33c9e8b28d791746378c5b1a79b0067e289ea6db (diff) | |
download | strongswan-722322992484d65cebb02ea5d5f7f346c0d84063.tar.bz2 strongswan-722322992484d65cebb02ea5d5f7f346c0d84063.tar.xz |
pluto: Avoid hiding outer parameter.
Diffstat (limited to 'src')
-rw-r--r-- | src/pluto/log.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/pluto/log.c b/src/pluto/log.c index 6e70898a5..ee33172b4 100644 --- a/src/pluto/log.c +++ b/src/pluto/log.c @@ -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 |