summaryrefslogtreecommitdiff
path: root/tests/condvar9.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/condvar9.c')
-rw-r--r--tests/condvar9.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/condvar9.c b/tests/condvar9.c
index 7d24d09..6591554 100644
--- a/tests/condvar9.c
+++ b/tests/condvar9.c
@@ -100,7 +100,7 @@ mythread(void * arg)
*/
pthread_cleanup_push(pthread_mutex_unlock, (void *) &cvthing.lock);
- while (! cvthing.shared > 0)
+ while (! (cvthing.shared > 0))
assert(pthread_cond_timedwait(&cvthing.notbusy, &cvthing.lock, &abstime) == 0);
pthread_cleanup_pop(0);