failtest, rbuf: fix up incorrect lseek arg order.
[ccan] / ccan / failtest / test / run-open.c
index 0166506480d897ea96f4b6ba33a5615109fb28ee..8b31ff71f35e73349e7ac1e9a060ef7014721c53 100644 (file)
@@ -29,7 +29,7 @@ int main(void)
        }
        /* Check it is read-write. */
        ok1(write(fd, buf, strlen(buf)) == strlen(buf));
-       lseek(fd, SEEK_SET, 0);
+       lseek(fd, 0, SEEK_SET);
        ok1(read(fd, buf, strlen("Hello world!")) == strlen("Hello world!"));
        ok1(strcmp(buf, "Hello world!") == 0);