]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
pluto: Avoid hiding outer parameter.
authorTobias Brunner <tobias@strongswan.org>
Thu, 14 Apr 2011 15:48:07 +0000 (17:48 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 14 Apr 2011 16:11:46 +0000 (18:11 +0200)
src/pluto/log.c

index 6e70898a52f15c3becdd27a0a70b4635d542a3d4..ee33172b4dfb7bb97b3242921c472f7c90598b6f 100644 (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