diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | tests/test-hash.c | 6 |
2 files changed, 8 insertions, 3 deletions
@@ -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 diff --git a/tests/test-hash.c b/tests/test-hash.c index ecfe357ccd..4a8a3bef37 100644 --- a/tests/test-hash.c +++ b/tests/test-hash.c @@ -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; |