From: Andreas Schlick Date: Sat, 2 Apr 2011 01:13:52 +0000 (+1030) Subject: failtest: Change mode_t to int. X-Git-Url: https://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=9660f0f1cbbdfd6473f033ca816fbf64fd8ce869 failtest: Change mode_t to int. This avoids a warning on systems that have a 16bit wide mode_t. --- 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);