From e8f8484fa9721cd8d929e630dbcb584ad4ff091b Mon Sep 17 00:00:00 2001 From: rpj Date: Tue, 3 Jul 2001 06:01:01 +0000 Subject: Undo a minor code change in condvar.c and insert comments in instead. --- semaphore.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'semaphore.c') diff --git a/semaphore.c b/semaphore.c index ee9c8f6..f2210d4 100644 --- a/semaphore.c +++ b/semaphore.c @@ -475,7 +475,7 @@ sem_post_multiple (sem_t * sem, int count ) * pointer to an instance of sem_t * * count - * counter, must be greater than or equal to zero. + * counter, must be greater than zero. * * DESCRIPTION * This function posts multiple wakeups to a semaphore. If there @@ -487,14 +487,14 @@ sem_post_multiple (sem_t * sem, int count ) * -1 failed, error in errno * ERRNO * EINVAL 'sem' is not a valid semaphore - * or count is not greater than zero. + * or count is less than or equal to zero. * * ------------------------------------------------------ */ { int result = 0; - if (sem == NULL || *sem == NULL || count < 0) + if (sem == NULL || *sem == NULL || count <= 0) { result = EINVAL; } -- cgit v1.2.3