From e2e9d95b6d81e076a6daa1b28959746c87c1394f Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Thu, 1 Dec 2011 03:05:17 +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/semopen.c: Use va_arg(..., mode_t) to retrieve mode. --- cpukit/posix/src/semopen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/posix/src/semopen.c') diff --git a/cpukit/posix/src/semopen.c b/cpukit/posix/src/semopen.c index 9bd4c1e443..3354935eba 100644 --- a/cpukit/posix/src/semopen.c +++ b/cpukit/posix/src/semopen.c @@ -60,7 +60,7 @@ sem_t *sem_open( if ( oflag & O_CREAT ) { va_start(arg, oflag); - mode = (mode_t) va_arg( arg, unsigned int ); + mode = va_arg( arg, mode_t ); value = va_arg( arg, unsigned int ); va_end(arg); } -- cgit v1.2.3