X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fjmap%2Ftest%2Frun-access-count.c;h=d9773c9e36d7ba656245cd2b15b8a1823b89083f;hp=288e894c6e4acf69d909bab97781af0aaef18230;hb=3a34aa1a0c71b0be86511a8aa83af9935351dad1;hpb=805ea0672938b40dea437ca68f32bf3380c191ed diff --git a/ccan/jmap/test/run-access-count.c b/ccan/jmap/test/run-access-count.c index 288e894c..d9773c9e 100644 --- a/ccan/jmap/test/run-access-count.c +++ b/ccan/jmap/test/run-access-count.c @@ -5,15 +5,19 @@ #include #include +struct map { + JMAP_MEMBERS(unsigned long, unsigned long); +}; + int main(int argc, char *argv[]) { - struct jmap *map; + struct map *map; unsigned long *value; int status; plan_tests(9); - map = jmap_new(); + map = jmap_new(struct map); ok1(jmap_error(map) == NULL); ok1(jmap_add(map, 0, 1));