X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;ds=sidebyside;f=ccan%2Fread_write_all%2Ftest%2Frun-write_all.c;h=50bd729c78d7590d3d362ec9a7d39e41a10254e0;hb=d7c0cfeb86f8a6474d2fa182c0325e0d3aee0ecd;hp=379ff9232fbcb669ce382d0578b14e9ce9adfff8;hpb=36b64ac075afbccbc42937f58b3aa9ce5901ebf5;p=ccan diff --git a/ccan/read_write_all/test/run-write_all.c b/ccan/read_write_all/test/run-write_all.c index 379ff923..50bd729c 100644 --- a/ccan/read_write_all/test/run-write_all.c +++ b/ccan/read_write_all/test/run-write_all.c @@ -1,8 +1,8 @@ /* FIXME: Do something tricky to ensure we really do loop in write_all. */ -#include "read_write_all/read_write_all.h" -#include "read_write_all/read_write_all.c" -#include "tap/tap.h" +#include +#include +#include #include #include #include @@ -46,7 +46,7 @@ int main(int argc, char *argv[]) if (!read_all(p2c[0], buffer+1, sizeof(buffer)-1)) exit(3); if (memchr(buffer, 0, sizeof(buffer))) { - fprintf(stderr, "buffer has 0 at offset %i\n", + fprintf(stderr, "buffer has 0 at offset %ti\n", memchr(buffer, 0, sizeof(buffer)) - (void *)buffer); exit(4); }