]> git.ozlabs.org Git - ccan/blobdiff - ccan/antithread/test/run-tell_parent.c
Adapt antithread to new talloc locking, and fix so talloc destructor
[ccan] / ccan / antithread / test / run-tell_parent.c
index a38f8c913a35c21d614ac7cdbcff6b227dbb4838..f3c17e9aee3a10eb65f5fdc985d25a1d4e05120d 100644 (file)
@@ -21,8 +21,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);