From 6940c38237038040e8387cab798828618936a8c8 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Thu, 1 Dec 2011 03:46:36 +0000 Subject: =?UTF-8?q?2011-12-01=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * posix/src/mqueueopen.c: Use va_arg(..., mode_t) to retrieve mode. --- cpukit/ChangeLog | 1 + cpukit/posix/src/mqueueopen.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'cpukit') 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 + * 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 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); } -- cgit v1.2.3