test-hash.c: avoid a new shadowing warning
* tests/test-hash.c (main): Don't shadow "dup".
author |
Jim Meyering <meyering@redhat.com> |
date |
Fri, 29 Apr 2011 09:38:14 +0200 |
parents |
4564c34c5e88 |
children |
f1968342f62e |
files |
ChangeLog tests/test-hash.c |
diffstat |
2 files changed, 8 insertions(+), 3 deletions(-)
[+]
|
line diff
--- 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
--- a/tests/test-hash.c
+++ b/tests/test-hash.c
@@ -208,9 +208,9 @@
{
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;