tap: WANT_PTHREAD not HAVE_PTHREAD
[ccan] / ccan / tap / test / run.c
index 37f26ae0277a418365cd46e6dc5c7d04759c59b6..fb039a895c12181c43664d66e83b86b532824651 100644 (file)
@@ -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);
                done = write(fd, data, size);
                if (done <= 0)
                        _exit(1);
-               data += done;
+               data = (const char *)data + done;
                size -= done;
        }
 }
                size -= done;
        }
 }