From: Jim Meyering Date: Fri, 29 Apr 2011 07:38:14 +0000 (+0200) Subject: test-hash.c: avoid a new shadowing warning X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20abe9a92c71d7ccb46484543e874f8b357d5f4f;p=pspp test-hash.c: avoid a new shadowing warning * tests/test-hash.c (main): Don't shadow "dup". --- diff --git a/ChangeLog b/ChangeLog index 9e5aa41558..3cc245ed3c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-04-29 Jim Meyering + + test-hash.c: avoid a new shadowing warning + * tests/test-hash.c (main): Don't shadow "dup". + 2011-04-28 Eric Blake 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;