X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fstringmap%2Ftest%2Frun.c;h=2ffcb1242493b79ffabb2008729b17fa7dbc3b7f;hp=52309c2601d863deef142151c6781f116a77bec2;hb=6fa62e5ae1e29646aa718e99020fdf2efee74373;hpb=f83c45bf4ccd00d81498c30cf7455a9813cf104b diff --git a/ccan/stringmap/test/run.c b/ccan/stringmap/test/run.c index 52309c26..2ffcb124 100644 --- a/ccan/stringmap/test/run.c +++ b/ccan/stringmap/test/run.c @@ -1,7 +1,7 @@ -#include "stringmap/stringmap.h" -#include "stringmap/stringmap.c" +#include +#include -#include "tap/tap.h" +#include static void test_trivial(void) { stringmap(int) map = stringmap_new(NULL); @@ -243,7 +243,7 @@ static int test_stringmap(size_t count, FILE *out) { struct test_entry *entries = block_pool_alloc(bp, sizeof(*entries) * count); struct test_entry *i, *e = entries+count, *o; char *value_base = block_pool_alloc(bp, count), *value = value_base; - size_t unique_count; + size_t unique_count = 0; //we use value to track whether an entry has been added or not memset(value, 0, count);