]> git.ozlabs.org Git - ccan/blobdiff - ccan/antithread/test/run-simple.c
Adapt antithread to new talloc locking, and fix so talloc destructor
[ccan] / ccan / antithread / test / run-simple.c
index 02bb9e0cb4dd57b3d818c699f815f4c1261c44e7..947dbe024a198e0a31c8d2f295fd3211074bcc2a 100644 (file)
@@ -20,8 +20,8 @@ int main(int argc, char *argv[])
        assert(atp);
        pid = talloc(at_pool_ctx(atp), int);
        assert(pid);
-       ok1((char *)pid >= (char *)atp->pool
-           && (char *)pid < (char *)atp->pool + atp->poolsize);
+       ok1((char *)pid >= (char *)atp->p->pool
+           && (char *)pid < (char *)atp->p->pool + atp->p->poolsize);
        at = at_run(atp, test, pid);
        assert(at);