diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2001-01-22 13:46:28 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2001-01-22 13:46:28 +0000 |
commit | 32ba727717d227c8be72f757f6e481a3e0f9f764 (patch) | |
tree | b92b2f207edcfb4a078042e43cbd056b182ebdf4 /c/src/exec/posix/src | |
parent | 2001-01-12 Eric Norum <eric.norum@usask.ca> (diff) | |
download | rtems-32ba727717d227c8be72f757f6e481a3e0f9f764.tar.bz2 |
2001-01-22 Michael Hamel <mhamel@adi.co.nz>
* include/rtems/posix/semaphore.h, inline/rtems/posix/semaphore.inl,
src/ptimer1.c, include/rtems/posix/semaphore.h,
inline/rtems/posix/semaphore.inl, src/alarm.c, src/ptimer1.c,
src/semaphorenametoid.c, src/semopen.c, src/semunlink.c:
Modifications to make CodeWarrior happy.
Diffstat (limited to 'c/src/exec/posix/src')
-rw-r--r-- | c/src/exec/posix/src/alarm.c | 2 | ||||
-rw-r--r-- | c/src/exec/posix/src/ptimer1.c | 6 | ||||
-rw-r--r-- | c/src/exec/posix/src/semaphorenametoid.c | 4 | ||||
-rw-r--r-- | c/src/exec/posix/src/semopen.c | 2 | ||||
-rw-r--r-- | c/src/exec/posix/src/semunlink.c | 2 |
5 files changed, 8 insertions, 8 deletions
diff --git a/c/src/exec/posix/src/alarm.c b/c/src/exec/posix/src/alarm.c index 10be929d25..b2258d7e56 100644 --- a/c/src/exec/posix/src/alarm.c +++ b/c/src/exec/posix/src/alarm.c @@ -13,7 +13,7 @@ #include <pthread.h> -#include <errno.h> +//#include <errno.h> #include <rtems/system.h> #include <rtems/posix/pthread.h> diff --git a/c/src/exec/posix/src/ptimer1.c b/c/src/exec/posix/src/ptimer1.c index d74865e960..eee24d966c 100644 --- a/c/src/exec/posix/src/ptimer1.c +++ b/c/src/exec/posix/src/ptimer1.c @@ -543,7 +543,7 @@ int timer_settime( /* XXX error handling */ break; - default: + default: break; } @@ -624,12 +624,12 @@ int timer_settime( set_errno_and_return_minus_one( EINVAL ); break; - default: + default: break; } break; - default: + default: break; /* It does nothing, although it will be probably necessary to * return an error */ diff --git a/c/src/exec/posix/src/semaphorenametoid.c b/c/src/exec/posix/src/semaphorenametoid.c index 9f14a1e79f..b485fea1e5 100644 --- a/c/src/exec/posix/src/semaphorenametoid.c +++ b/c/src/exec/posix/src/semaphorenametoid.c @@ -26,7 +26,7 @@ int _POSIX_Semaphore_Name_to_id( const char *name, - Objects_Id *id + sem_t *id ) { Objects_Name_to_id_errors status; @@ -38,7 +38,7 @@ int _POSIX_Semaphore_Name_to_id( return EINVAL; status = _Objects_Name_to_id( - &_POSIX_Semaphore_Information, (char *)name, 0, id ); + &_POSIX_Semaphore_Information, (char *)name, 0, (Objects_Id*)id ); if ( status == OBJECTS_SUCCESSFUL ) return 0; diff --git a/c/src/exec/posix/src/semopen.c b/c/src/exec/posix/src/semopen.c index f395d8f93d..0d8797696a 100644 --- a/c/src/exec/posix/src/semopen.c +++ b/c/src/exec/posix/src/semopen.c @@ -41,7 +41,7 @@ sem_t *sem_open( mode_t mode; unsigned int value = 0; int status; - Objects_Id the_semaphore_id; + sem_t the_semaphore_id; POSIX_Semaphore_Control *the_semaphore; Objects_Locations location; diff --git a/c/src/exec/posix/src/semunlink.c b/c/src/exec/posix/src/semunlink.c index 55462fb329..78a5781dd4 100644 --- a/c/src/exec/posix/src/semunlink.c +++ b/c/src/exec/posix/src/semunlink.c @@ -32,7 +32,7 @@ int sem_unlink( { int status; register POSIX_Semaphore_Control *the_semaphore; - Objects_Id the_semaphore_id; + sem_t the_semaphore_id; _Thread_Disable_dispatch(); |