summaryrefslogtreecommitdiffstats
path: root/c/src/exec/posix/src/mqueueopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/exec/posix/src/mqueueopen.c')
-rw-r--r--c/src/exec/posix/src/mqueueopen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/src/exec/posix/src/mqueueopen.c b/c/src/exec/posix/src/mqueueopen.c
index c50a170fed..dc0bf9b592 100644
--- a/c/src/exec/posix/src/mqueueopen.c
+++ b/c/src/exec/posix/src/mqueueopen.c
@@ -57,7 +57,7 @@ mqd_t mq_open(
if ( oflag & O_CREAT ) {
va_start(arg, oflag);
- mode = (mode_t) va_arg( arg, mode_t );
+ mode = (mode_t) va_arg( arg, unsigned int );
attr = (struct mq_attr *) va_arg( arg, struct mq_attr * );
va_end(arg);
}