Browse Source

failtest: Change mode_t to int.

This avoids a warning on systems that have a 16bit wide mode_t.
Andreas Schlick 15 years ago
parent
commit
9660f0f1cb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ccan/failtest/failtest.c

+ 1 - 1
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);