]> git.ozlabs.org Git - ccan/blobdiff - ccan/antithread/test/run-simple.c
antithread: fix -Wwrite-strings warning in test, and trailing whitespace.
[ccan] / ccan / antithread / test / run-simple.c
index 02bb9e0cb4dd57b3d818c699f815f4c1261c44e7..56569bb24b646615ad278c85fe855cf8858a7e9e 100644 (file)
@@ -1,6 +1,6 @@
-#include "antithread/antithread.c"
+#include <ccan/antithread/antithread.c>
 #include <assert.h>
-#include "tap/tap.h"
+#include <ccan/tap/tap.h>
 
 static void *test(struct at_pool *atp, int *pid)
 {
@@ -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);