diff options
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/ChangeLog | 1 | ||||
-rw-r--r-- | cpukit/posix/src/mqueueopen.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index ad939e27d0..33be928e4d 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -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> diff --git a/cpukit/posix/src/mqueueopen.c b/cpukit/posix/src/mqueueopen.c index 2b96236fb5..96ec4dd40f 100644 --- a/cpukit/posix/src/mqueueopen.c +++ b/cpukit/posix/src/mqueueopen.c @@ -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); } |