summaryrefslogtreecommitdiff
path: root/private.c
diff options
context:
space:
mode:
authorrpj <rpj>2001-06-11 12:59:34 +0000
committerrpj <rpj>2001-06-11 12:59:34 +0000
commit5561998d3f57b23914c5a8cc5a07e53492242a3e (patch)
tree98747b22eeea71cceb65775fdba209de8590b37c /private.c
parentcde63164e7f952ed0980fe62877796b81f749310 (diff)
* semaphore.h (sem_t): Fixed for compile and test.
* implement.h (sem_t_): Likewise. * semaphore.c: Likewise. * private.c (ptw32_sem_timedwait): Updated to use new opaque sem_t. tests/ * mutex5.c: Insert inert change to quell compiler warnings. * condvar3_2.c: Remove unused variable.
Diffstat (limited to 'private.c')
-rw-r--r--private.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/private.c b/private.c
index 5274da9..ecae84a 100644
--- a/private.c
+++ b/private.c
@@ -899,11 +899,11 @@ ptw32_sem_timedwait (sem_t * sem, const struct timespec * abstime)
#ifdef NEED_SEM
- result = (pthreadCancelableTimedWait (sem->event, milliseconds));
+ result = (pthreadCancelableTimedWait ((*sem)->event, milliseconds));
#else /* NEED_SEM */
- result = (pthreadCancelableTimedWait (*sem, milliseconds));
+ result = (pthreadCancelableTimedWait ((*sem)->sem, milliseconds));
#endif