X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fstringmap%2Ftest%2Frun.c;h=2ffcb1242493b79ffabb2008729b17fa7dbc3b7f;hp=52309c2601d863deef142151c6781f116a77bec2;hb=c438ec17d7b2efe76e56e5fc5ab88bd4a02735e8;hpb=d268cd3b270f1e41123e036c07ab058bac98b762 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);