summaryrefslogtreecommitdiff
path: root/tests/test-hash.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-04-29 09:38:14 +0200
committerJim Meyering <meyering@redhat.com>2011-04-29 09:38:14 +0200
commit20abe9a92c71d7ccb46484543e874f8b357d5f4f (patch)
tree1098b5f870bf6f40678f98e440308f4de2db7724 /tests/test-hash.c
parent74175b903b1716c1677658e45fa69ef1fbc99015 (diff)
downloadgnulib-20abe9a92c71d7ccb46484543e874f8b357d5f4f.tar.gz
test-hash.c: avoid a new shadowing warning
* tests/test-hash.c (main): Don't shadow "dup".
Diffstat (limited to 'tests/test-hash.c')
-rw-r--r--tests/test-hash.c6
1 files changed, 3 insertions, 3 deletions
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;