summaryrefslogtreecommitdiffstats
path: root/lib/libthr/thread/thr_event.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libthr/thread/thr_event.c')
-rw-r--r--lib/libthr/thread/thr_event.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libthr/thread/thr_event.c b/lib/libthr/thread/thr_event.c
index cdab9d7..716d21e 100644
--- a/lib/libthr/thread/thr_event.c
+++ b/lib/libthr/thread/thr_event.c
@@ -42,7 +42,7 @@ void
_thr_report_creation(struct pthread *curthread, struct pthread *newthread)
{
curthread->event_buf.event = TD_CREATE;
- curthread->event_buf.th_p = (td_thrhandle_t *)newthread;
+ curthread->event_buf.th_p = (uintptr_t)newthread;
curthread->event_buf.data = 0;
THR_UMUTEX_LOCK(curthread, &_thr_event_lock);
_thread_last_event = curthread;
@@ -55,7 +55,7 @@ void
_thr_report_death(struct pthread *curthread)
{
curthread->event_buf.event = TD_DEATH;
- curthread->event_buf.th_p = (td_thrhandle_t *)curthread;
+ curthread->event_buf.th_p = (uintptr_t)curthread;
curthread->event_buf.data = 0;
THR_UMUTEX_LOCK(curthread, &_thr_event_lock);
_thread_last_event = curthread;
OpenPOWER on IntegriCloud