diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-11-02 17:14:40 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-11-02 17:14:40 +0000 |
commit | b95e303fca5ef79570cc57058d7dbdcf556688c1 (patch) | |
tree | 0408b01ecc2a33d4ed18b5a0f3abb9138d917df4 /c/src/exec | |
parent | Split mqueue.c into a variety of files. (diff) | |
download | rtems-b95e303fca5ef79570cc57058d7dbdcf556688c1.tar.bz2 |
Removed warnings.
Diffstat (limited to 'c/src/exec')
-rw-r--r-- | c/src/exec/posix/src/semaphore.c | 4 |
1 files changed, 2 insertions, 2 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; |