From: Ulrich Drepper Date: Thu, 29 May 2003 05:28:16 +0000 (+0000) Subject: Update. X-Git-Tag: cvs/glibc-2_3_3~684 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5a77f1501d9031c0fd8bad1d5a04b0379a99c029;p=thirdparty%2Fglibc.git Update. 2003-05-28 Ulrich Drepper * sysdeps/pthread/pthread_cond_broadcast.c (__pthread_cond_broadcast): Fix typo: MAX_INT -> INT_MAX. --- diff --git a/nptl/ChangeLog b/nptl/ChangeLog index 1b175fa8bbd..56a156edbed 100644 --- a/nptl/ChangeLog +++ b/nptl/ChangeLog @@ -1,3 +1,8 @@ +2003-05-28 Ulrich Drepper + + * sysdeps/pthread/pthread_cond_broadcast.c + (__pthread_cond_broadcast): Fix typo: MAX_INT -> INT_MAX. + 2003-05-26 Ulrich Drepper * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Fix diff --git a/nptl/sysdeps/pthread/pthread_cond_broadcast.c b/nptl/sysdeps/pthread/pthread_cond_broadcast.c index f34f58cc997..6c3722a9cd9 100644 --- a/nptl/sysdeps/pthread/pthread_cond_broadcast.c +++ b/nptl/sysdeps/pthread/pthread_cond_broadcast.c @@ -56,13 +56,13 @@ __pthread_cond_broadcast (cond) /* Wake everybody. */ pthread_mutex_t *mut = (pthread_mutex_t *) cond->__data.__mutex; - if (__builtin_expect (lll_futex_requeue (futex, 1, MAX_INT, + if (__builtin_expect (lll_futex_requeue (futex, 1, INT_MAX, &mut->__data.__lock) == -EINVAL, 0)) { /* The requeue functionality is not available. */ #ifndef __ASSUME_FUTEX_REQUEUE - lll_futex_wake (futex, MAX_INT); + lll_futex_wake (futex, INT_MAX); #endif }