summaryrefslogtreecommitdiff
path: root/condvar.c
diff options
context:
space:
mode:
Diffstat (limited to 'condvar.c')
-rw-r--r--condvar.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/condvar.c b/condvar.c
index c1f192c..580c379 100644
--- a/condvar.c
+++ b/condvar.c
@@ -817,7 +817,6 @@ pthread_cond_broadcast (pthread_cond_t * cond)
*/
{
int result = 0;
- int i;
pthread_cond_t cv;
if (cond == NULL || *cond == NULL)
@@ -840,7 +839,7 @@ pthread_cond_broadcast (pthread_cond_t * cond)
/*
* Wake up all waiters
*/
- result = (ReleaseSemaphore( cv->sema, cond->waiters, NULL )
+ result = (ReleaseSemaphore( cv->sema, cv->waiters, NULL )
? 0
: EINVAL);
@@ -865,5 +864,3 @@ pthread_cond_broadcast (pthread_cond_t * cond)
return (result);
}
-
-