mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-20 23:12:22 +08:00
2011-12-01 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/src/open.c: Use va_arg(..., mode_t) to retrieve mode.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
2011-12-01 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* 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.
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user