aboutsummaryrefslogtreecommitdiff
path: root/nptl/old_pthread_cond_broadcast.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/old_pthread_cond_broadcast.c')
-rw-r--r--nptl/old_pthread_cond_broadcast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nptl/old_pthread_cond_broadcast.c b/nptl/old_pthread_cond_broadcast.c
index 0db0aeab96..3852943fac 100644
--- a/nptl/old_pthread_cond_broadcast.c
+++ b/nptl/old_pthread_cond_broadcast.c
@@ -46,7 +46,7 @@ __pthread_cond_broadcast_2_0 (cond)
(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);
}