summaryrefslogtreecommitdiff
path: root/semaphore.c
diff options
context:
space:
mode:
authorrpj <rpj>2001-07-03 02:00:09 +0000
committerrpj <rpj>2001-07-03 02:00:09 +0000
commit663a1af0674c37774d310541e9b30c60316f2055 (patch)
treec0f96f98c55cb98ecbd55dac2a5e1c60c00b280e /semaphore.c
parentc156eacc8b9c6f33f89c7563f2821320be79c2e1 (diff)
Cosmetic changes.
Diffstat (limited to 'semaphore.c')
-rw-r--r--semaphore.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/semaphore.c b/semaphore.c
index 81b777f..ee9c8f6 100644
--- a/semaphore.c
+++ b/semaphore.c
@@ -487,7 +487,7 @@ sem_post_multiple (sem_t * sem, int count )
* -1 failed, error in errno
* ERRNO
* EINVAL 'sem' is not a valid semaphore
- * or count is less than zero.
+ * or count is not greater than zero.
*
* ------------------------------------------------------
*/
@@ -498,10 +498,7 @@ sem_post_multiple (sem_t * sem, int count )
{
result = EINVAL;
}
- else if (count == 0)
- {
- return 0;
- }
+ else
#ifdef NEED_SEM