diff options
author | Andreas Schlick <schlick@lavabit.com> | 2011-04-02 11:43:52 +1030 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2011-04-02 11:43:52 +1030 |
commit | 9660f0f1cbbdfd6473f033ca816fbf64fd8ce869 (patch) | |
tree | 991e34673b8b84e0f67909ca287f4f629214ed95 | |
parent | 97648992fdd50535fe276261368c179df993202b (diff) |
failtest: Change mode_t to int.
This avoids a warning on systems that have a 16bit wide mode_t.
-rw-r--r-- | ccan/failtest/failtest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ccan/failtest/failtest.c b/ccan/failtest/failtest.c index 851f2eab..061d6e9e 100644 --- a/ccan/failtest/failtest.c +++ b/ccan/failtest/failtest.c @@ -677,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); |