From b95e303fca5ef79570cc57058d7dbdcf556688c1 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 2 Nov 1999 17:14:40 +0000 Subject: Removed warnings. --- c/src/exec/posix/src/semaphore.c | 4 ++-- cpukit/posix/src/semaphore.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/c/src/exec/posix/src/semaphore.c b/c/src/exec/posix/src/semaphore.c index 69c49aa9f7..32c7ca4867 100644 --- a/c/src/exec/posix/src/semaphore.c +++ b/c/src/exec/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; 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; -- cgit v1.2.3