]> git.ozlabs.org Git - ccan/blobdiff - ccan/failtest/failtest.c
tdb2: rename internal hashfn and logfn to hash_fn and log_fn.
[ccan] / ccan / failtest / failtest.c
index 30903e3f3c4ecf232d474e2d09bc82f5238e777c..061d6e9e3fc911c12c88fe7b122a417287441133 100644 (file)
@@ -12,6 +12,7 @@
 #include <sys/wait.h>
 #include <sys/stat.h>
 #include <sys/time.h>
+#include <signal.h>
 #include <assert.h>
 #include <ccan/read_write_all/read_write_all.h>
 #include <ccan/failtest/failtest_proto.h>
@@ -676,7 +677,7 @@ int failtest_open(const char *pathname,
        va_start(ap, line);
        call.flags = va_arg(ap, int);
        if (call.flags & O_CREAT) {
-               call.mode = va_arg(ap, mode_t);
+               call.mode = va_arg(ap, int);
                va_end(ap);
        }
        p = add_history(FAILTEST_OPEN, file, line, &call);