summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-11-02 17:14:40 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-11-02 17:14:40 +0000
commitb95e303fca5ef79570cc57058d7dbdcf556688c1 (patch)
tree0408b01ecc2a33d4ed18b5a0f3abb9138d917df4
parentSplit mqueue.c into a variety of files. (diff)
downloadrtems-b95e303fca5ef79570cc57058d7dbdcf556688c1.tar.bz2
Removed warnings.
-rw-r--r--c/src/exec/posix/src/semaphore.c4
-rw-r--r--cpukit/posix/src/semaphore.c4
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;