Mercurial > gnulib
changeset 14648:745a0964c221
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 wrap: on
line diff
--- a/ChangeLog Thu Apr 28 16:46:16 2011 -0600 +++ b/ChangeLog Fri Apr 29 09:38:14 2011 +0200 @@ -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 Thu Apr 28 16:46:16 2011 -0600 +++ b/tests/test-hash.c Fri Apr 29 09:38:14 2011 +0200 @@ -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;