test-hash.c: avoid a new shadowing warning
authorJim Meyering <meyering@redhat.com>
Fri, 29 Apr 2011 07:38:14 +0000 (09:38 +0200)
committerJim Meyering <meyering@redhat.com>
Fri, 29 Apr 2011 07:38:14 +0000 (09:38 +0200)
* tests/test-hash.c (main): Don't shadow "dup".

ChangeLog
tests/test-hash.c

index 9e5aa41558003199e34931d7576369e67eb2b15d..3cc245ed3c2854e525f6d2a1b5d95ab45e3f77b4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-04-29  Jim Meyering  <meyering@redhat.com>
+
+       test-hash.c: avoid a new shadowing warning
+       * tests/test-hash.c (main): Don't shadow "dup".
+
 2011-04-28  Eric Blake  <eblake@redhat.com>
 
        getaddrinfo: fix gai_strerror signature
index ecfe357ccdf161d485e722db87ace67b6d68c4b8..4a8a3bef3716e9e937a14a5f5d9c73b08a3863a3 100644 (file)
@@ -208,9 +208,9 @@ main (int argc, char **argv)
               {
                 char buf[50];
                 char const *p = uinttostr (i, buf);
-                char *dup = strdup (p);
-                ASSERT (dup);
-                insert_new (ht, dup);
+                char *p_dup = strdup (p);
+                ASSERT (p_dup);
+                insert_new (ht, p_dup);
               }
               break;