2011-12-01 Ralf Corsépius <ralf.corsepius@rtems.org>

* posix/src/mqueueopen.c: Use va_arg(..., mode_t) to retrieve mode.
This commit is contained in:
Ralf Corsepius
2011-12-01 03:46:36 +00:00
parent e2e9d95b6d
commit 6940c38237
2 changed files with 3 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
2011-12-01 Ralf Corsépius <ralf.corsepius@rtems.org>
* posix/src/mqueueopen.c: Use va_arg(..., mode_t) to retrieve mode.
* posix/src/semopen.c: Use va_arg(..., mode_t) to retrieve mode.
2011-11-30 Ralf Corsépius <ralf.corsepius@rtems.org>

View File

@@ -63,8 +63,8 @@ mqd_t mq_open(
if ( oflag & O_CREAT ) {
va_start(arg, oflag);
mode = (mode_t) va_arg( arg, unsigned int );
attr = (struct mq_attr *) va_arg( arg, struct mq_attr * );
mode = va_arg( arg, mode_t );
attr = va_arg( arg, struct mq_attr * );
va_end(arg);
}