summaryrefslogtreecommitdiff
path: root/nptl/old_pthread_cond_wait.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/old_pthread_cond_wait.c')
-rw-r--r--nptl/old_pthread_cond_wait.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nptl/old_pthread_cond_wait.c b/nptl/old_pthread_cond_wait.c
index 50505a265e..0a503a1cdc 100644
--- a/nptl/old_pthread_cond_wait.c
+++ b/nptl/old_pthread_cond_wait.c
@@ -47,7 +47,7 @@ __pthread_cond_wait_2_0 (cond, mutex)
(void) pthread_cond_init (newcond, NULL);
#endif
- if (atomic_compare_and_exchange_acq (&cond->cond, newcond, NULL) != 0)
+ if (atomic_compare_and_exchange_bool_acq (&cond->cond, newcond, NULL))
/* Somebody else just initialized the condvar. */
free (newcond);
}