summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/posix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/posix.c b/src/posix.c
index cecb538eb..a9a6af984 100644
--- a/src/posix.c
+++ b/src/posix.c
@@ -21,7 +21,7 @@ int p_open(const char *path, int flags, ...)
va_list arg_list;
va_start(arg_list, flags);
- mode = va_arg(arg_list, mode_t);
+ mode = (mode_t)va_arg(arg_list, int);
va_end(arg_list);
}