X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftap%2Ftest%2Frun.c;fp=ccan%2Ftap%2Ftest%2Frun.c;h=fb039a895c12181c43664d66e83b86b532824651;hb=b2e751d04e590c49de02ceb56a7cafe877762b0e;hp=37f26ae0277a418365cd46e6dc5c7d04759c59b6;hpb=c1da4104d996fe1a332e5bc01fad937b4773551a;p=ccan diff --git a/ccan/tap/test/run.c b/ccan/tap/test/run.c index 37f26ae0..fb039a89 100644 --- a/ccan/tap/test/run.c +++ b/ccan/tap/test/run.c @@ -25,7 +25,7 @@ static void write_all(int fd, const void *data, size_t size) done = write(fd, data, size); if (done <= 0) _exit(1); - data += done; + data = (const char *)data + done; size -= done; } }