summaryrefslogtreecommitdiffstats
path: root/cpukit/posix
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/posix')
-rw-r--r--cpukit/posix/ChangeLog6
-rw-r--r--cpukit/posix/src/cancelrun.c2
-rw-r--r--cpukit/posix/src/pthreadexit.c2
-rw-r--r--cpukit/posix/src/pthreadjoin.c2
-rw-r--r--cpukit/posix/src/sigtimedwait.c2
5 files changed, 10 insertions, 4 deletions
diff --git a/cpukit/posix/ChangeLog b/cpukit/posix/ChangeLog
index 4aa6e520ac..ef98158bac 100644
--- a/cpukit/posix/ChangeLog
+++ b/cpukit/posix/ChangeLog
@@ -1,3 +1,9 @@
+2003-10-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
+
+ * src/cancelrun.c, src/pthreadexit.c, src/pthreadjoin.c,
+ src/sigtimedwait.c: Remove unnecessary typecasts in assignments to
+ thread->Wait.return_argument.
+
2003-10-13 Joel Sherrill <joel@OARcorp.com>
* src/cleanuppop.c, src/cleanuppush.c: Protect use of
diff --git a/cpukit/posix/src/cancelrun.c b/cpukit/posix/src/cancelrun.c
index 59138ac1b7..3eda8edabe 100644
--- a/cpukit/posix/src/cancelrun.c
+++ b/cpukit/posix/src/cancelrun.c
@@ -53,7 +53,7 @@ void _POSIX_Threads_cancel_run(
/* Now we can delete the thread */
- the_thread->Wait.return_argument = (unsigned32 *)PTHREAD_CANCELED;
+ the_thread->Wait.return_argument = PTHREAD_CANCELED;
_Thread_Close(
_Objects_Get_information( the_thread->Object.id ),
the_thread
diff --git a/cpukit/posix/src/pthreadexit.c b/cpukit/posix/src/pthreadexit.c
index 776e3f8d91..24846675d0 100644
--- a/cpukit/posix/src/pthreadexit.c
+++ b/cpukit/posix/src/pthreadexit.c
@@ -38,7 +38,7 @@ void pthread_exit(
_Thread_Disable_dispatch();
- _Thread_Executing->Wait.return_argument = (unsigned32 *)value_ptr;
+ _Thread_Executing->Wait.return_argument = value_ptr;
_Thread_Close( the_information, _Thread_Executing );
diff --git a/cpukit/posix/src/pthreadjoin.c b/cpukit/posix/src/pthreadjoin.c
index c348dd3278..6e5fc28224 100644
--- a/cpukit/posix/src/pthreadjoin.c
+++ b/cpukit/posix/src/pthreadjoin.c
@@ -54,7 +54,7 @@ int pthread_join(
* Put ourself on the threads join list
*/
- _Thread_Executing->Wait.return_argument = (unsigned32 *) &return_pointer;
+ _Thread_Executing->Wait.return_argument = &return_pointer;
_Thread_queue_Enter_critical_section( &api->Join_List );
diff --git a/cpukit/posix/src/sigtimedwait.c b/cpukit/posix/src/sigtimedwait.c
index 7c971deec2..687883fefd 100644
--- a/cpukit/posix/src/sigtimedwait.c
+++ b/cpukit/posix/src/sigtimedwait.c
@@ -123,7 +123,7 @@ int sigtimedwait(
the_thread->Wait.queue = &_POSIX_signals_Wait_queue;
the_thread->Wait.return_code = EINTR;
the_thread->Wait.option = *set;
- the_thread->Wait.return_argument = (void *) the_info;
+ the_thread->Wait.return_argument = the_info;
_Thread_queue_Enter_critical_section( &_POSIX_signals_Wait_queue );
_ISR_Enable( level );
_Thread_queue_Enqueue( &_POSIX_signals_Wait_queue, interval );