projects
/
pspp-builds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb58666
)
hmap: Remove shadowed variable from inner scope.
author
Ben Pfaff
<blp@gnu.org>
Fri, 27 Nov 2009 18:57:49 +0000
(10:57 -0800)
committer
Ben Pfaff
<blp@gnu.org>
Fri, 27 Nov 2009 18:59:30 +0000
(10:59 -0800)
'j' is also declared at the top level of the function so there is no
need to declare it inside the 'for' loop.
tests/libpspp/hmap-test.c
patch
|
blob
|
history
diff --git
a/tests/libpspp/hmap-test.c
b/tests/libpspp/hmap-test.c
index 4ca7f92fd73f48316bcc53c1f388bfab69427a11..3b3369061f704314d7dce339f961bcd4648abaaa 100644
(file)
--- 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++)