From cadea7923e5d852ae4ca0d93f46c7290b0f4c889 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Thu, 1 Dec 2011 08:01:40 +0000 Subject: [PATCH] =?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 * libcsupport/src/open.c: Use va_arg(..., mode_t) to retrieve mode. --- cpukit/ChangeLog | 1 + cpukit/libcsupport/src/open.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 33be928e4d..1860112ccb 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,5 +1,6 @@ 2011-12-01 Ralf Corsépius + * libcsupport/src/open.c: Use va_arg(..., mode_t) to retrieve mode. * posix/src/mqueueopen.c: Use va_arg(..., mode_t) to retrieve mode. * posix/src/semopen.c: Use va_arg(..., mode_t) to retrieve mode. diff --git a/cpukit/libcsupport/src/open.c b/cpukit/libcsupport/src/open.c index a49ebfec0d..a2e1b507e3 100644 --- a/cpukit/libcsupport/src/open.c +++ b/cpukit/libcsupport/src/open.c @@ -64,7 +64,7 @@ int open( ) { va_list ap; - int mode; + mode_t mode; int rc; rtems_libio_t *iop = 0; int status; @@ -84,7 +84,7 @@ int open( va_start(ap, flags); - mode = va_arg( ap, int ); + mode = va_arg( ap, mode_t ); /* * NOTE: This comment is OBSOLETE. The proper way to do this now