]> git.ozlabs.org Git - ccan/blobdiff - ccan/jmap/test/run-access-count.c
jmap: use ccan/tcon and always be typesafe.
[ccan] / ccan / jmap / test / run-access-count.c
index 288e894c6e4acf69d909bab97781af0aaef18230..d9773c9e36d7ba656245cd2b15b8a1823b89083f 100644 (file)
@@ -5,15 +5,19 @@
 #include <sys/wait.h>
 #include <unistd.h>
 
+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));