From 771465fed0cf50ee2dd790723245fc091699c324 Mon Sep 17 00:00:00 2001 From: rpj Date: Mon, 17 May 2004 01:38:02 +0000 Subject: re-indentation, bug fixes, hooks for pre-emptive async cancelation --- sem_post.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'sem_post.c') diff --git a/sem_post.c b/sem_post.c index a0ee019..3281643 100644 --- a/sem_post.c +++ b/sem_post.c @@ -55,7 +55,7 @@ sem_post (sem_t * sem) * * PARAMETERS * sem - * pointer to an instance of sem_t + * pointer to an instance of sem_t * * DESCRIPTION * This function posts a wakeup to a semaphore. If there @@ -63,11 +63,11 @@ sem_post (sem_t * sem) * otherwise, the semaphore value is incremented by one. * * RESULTS - * 0 successfully posted semaphore, - * -1 failed, error in errno + * 0 successfully posted semaphore, + * -1 failed, error in errno * ERRNO - * EINVAL 'sem' is not a valid semaphore, - * ENOSYS semaphores are not supported, + * EINVAL 'sem' is not a valid semaphore, + * ENOSYS semaphores are not supported, * * ------------------------------------------------------ */ @@ -76,21 +76,21 @@ sem_post (sem_t * sem) if (sem == NULL || *sem == NULL) { - result = EINVAL; + result = EINVAL; } #ifdef NEED_SEM - else if (! ptw32_increase_semaphore (sem, 1)) + else if (!ptw32_increase_semaphore (sem, 1)) #else /* NEED_SEM */ - else if (! ReleaseSemaphore ((*sem)->sem, 1, 0)) + else if (!ReleaseSemaphore ((*sem)->sem, 1, 0)) #endif /* NEED_SEM */ { - result = EINVAL; + result = EINVAL; } if (result != 0) -- cgit v1.2.3