]> git.ozlabs.org Git - ccan/blobdiff - ccan/antithread/test/run-spawn.c
Adapt antithread to new talloc locking, and fix so talloc destructor
[ccan] / ccan / antithread / test / run-spawn.c
index d2987278204e15ef3b66be28ac13d0200b086baa..1f12ebeba41904758df575c098d7d4041beacc53 100644 (file)
@@ -26,8 +26,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);
 
        /* This is a failed spawn. */
        at = at_spawn(atp, pid, bad_args);