X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ffailtest%2Ffailtest.c;h=061d6e9e3fc911c12c88fe7b122a417287441133;hp=30903e3f3c4ecf232d474e2d09bc82f5238e777c;hb=f6900d2358ca0ec2f2dc776b9e42e4fca7bffbdf;hpb=36264d9553f924c8a58ae967f659601d1ff6793a diff --git a/ccan/failtest/failtest.c b/ccan/failtest/failtest.c index 30903e3f..061d6e9e 100644 --- a/ccan/failtest/failtest.c +++ b/ccan/failtest/failtest.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include @@ -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);