From: Ben Pfaff Date: Fri, 27 Nov 2009 18:57:49 +0000 (-0800) Subject: hmap: Remove shadowed variable from inner scope. X-Git-Tag: lenny-x64-build62~3 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ebdbcc89e6c08c3bb21227a85f0850f42873f64;p=pspp-builds.git hmap: Remove shadowed variable from inner scope. 'j' is also declared at the top level of the function so there is no need to declare it inside the 'for' loop. --- diff --git a/tests/libpspp/hmap-test.c b/tests/libpspp/hmap-test.c index 4ca7f92f..3b336906 100644 --- a/tests/libpspp/hmap-test.c +++ b/tests/libpspp/hmap-test.c @@ -378,7 +378,6 @@ check_hmap (struct hmap *hmap, const int data[], size_t cnt, for (p = hmap_first (hmap), i = 0; i < cnt; p = hmap_next (hmap, p), i++) { struct element *e = hmap_node_to_element (p); - size_t j; check (hmap_node_hash (&e->node) == hash (e->data)); for (j = 0; j < left; j++)