diff options
Diffstat (limited to 'cpukit/posix')
-rw-r--r-- | cpukit/posix/src/semaphore.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/posix/src/semaphore.c b/cpukit/posix/src/semaphore.c index 69c49aa9f7..32c7ca4867 100644 --- a/cpukit/posix/src/semaphore.c +++ b/cpukit/posix/src/semaphore.c @@ -251,7 +251,7 @@ sem_t *sem_open( { va_list arg; mode_t mode; - unsigned int value; + unsigned int value = 0; int status; Objects_Id the_semaphore_id; POSIX_Semaphore_Control *the_semaphore; @@ -618,7 +618,7 @@ int _POSIX_Semaphore_Name_to_id( { Objects_Name_to_id_errors status; - status = _Objects_Name_to_id( &_POSIX_Semaphore_Information, name, 0, id ); + status = _Objects_Name_to_id( &_POSIX_Semaphore_Information, (char *)name, 0, id ); if ( status == OBJECTS_SUCCESSFUL ) { return 0; |