diff options
Diffstat (limited to 'cpukit/posix/src/semaphore.c')
-rw-r--r-- | cpukit/posix/src/semaphore.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/cpukit/posix/src/semaphore.c b/cpukit/posix/src/semaphore.c index e357e51e0c..a896655197 100644 --- a/cpukit/posix/src/semaphore.c +++ b/cpukit/posix/src/semaphore.c @@ -1,5 +1,5 @@ /* - * COPYRIGHT (c) 1989-2007. + * COPYRIGHT (c) 1989-2008. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -22,6 +22,7 @@ #include <limits.h> #include <rtems/system.h> +#include <rtems/config.h> #include <rtems/score/object.h> #include <rtems/posix/semaphore.h> #include <rtems/posix/time.h> @@ -33,21 +34,19 @@ * * This routine initializes all semaphore manager related data structures. * - * Input parameters: - * maximum_semaphores - maximum configured semaphores + * Input parameters: NONE * * Output parameters: NONE */ -void _POSIX_Semaphore_Manager_initialization( - uint32_t maximum_semaphores -) +void _POSIX_Semaphore_Manager_initialization(void) { _Objects_Initialize_information( &_POSIX_Semaphore_Information, /* object information table */ - OBJECTS_POSIX_API, /* object API */ - OBJECTS_POSIX_SEMAPHORES, /* object class */ - maximum_semaphores /* maximum objects of this class */, + OBJECTS_POSIX_API, /* object API */ + OBJECTS_POSIX_SEMAPHORES, /* object class */ + Configuration_POSIX_API.maximum_semaphores, + /* maximum objects of this class */ sizeof( POSIX_Semaphore_Control ), /* size of this object's control block */ TRUE, /* TRUE if names for this object are strings */ |