From bb84fa146f2252f22999205a2904d8a948bffd3b Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Sat, 20 Oct 2018 18:00:08 +0100 Subject: util: use C99 declaration in the for-loop hash_table_foreach() macro Signed-off-by: Eric Engestrom Reviewed-by: Timothy Arceri --- src/util/tests/hash_table/clear.c | 1 - src/util/tests/hash_table/collision.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'src/util/tests/hash_table') diff --git a/src/util/tests/hash_table/clear.c b/src/util/tests/hash_table/clear.c index 526700bfb0f..3d6bf80c0cf 100644 --- a/src/util/tests/hash_table/clear.c +++ b/src/util/tests/hash_table/clear.c @@ -53,7 +53,6 @@ static void delete_function(struct hash_entry *entry) int main() { struct hash_table *ht; - struct hash_entry *entry; const uint32_t size = 1000; bool flags[size]; uint32_t i; diff --git a/src/util/tests/hash_table/collision.c b/src/util/tests/hash_table/collision.c index 69a4c29eca7..ba8913281fb 100644 --- a/src/util/tests/hash_table/collision.c +++ b/src/util/tests/hash_table/collision.c @@ -37,7 +37,7 @@ main(int argc, char **argv) const char *str1 = "test1"; const char *str2 = "test2"; const char *str3 = "test3"; - struct hash_entry *entry1, *entry2, *search_entry; + struct hash_entry *entry1, *entry2; uint32_t bad_hash = 5; int i; -- cgit v1.2.3