summaryrefslogtreecommitdiff
path: root/ptw32_rwlock_check_need_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'ptw32_rwlock_check_need_init.c')
-rw-r--r--ptw32_rwlock_check_need_init.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ptw32_rwlock_check_need_init.c b/ptw32_rwlock_check_need_init.c
index 034ce7d..472af4e 100644
--- a/ptw32_rwlock_check_need_init.c
+++ b/ptw32_rwlock_check_need_init.c
@@ -38,7 +38,7 @@
#include "implement.h"
INLINE int
-ptw32_rwlock_check_need_init(pthread_rwlock_t *rwlock)
+ptw32_rwlock_check_need_init (pthread_rwlock_t * rwlock)
{
int result = 0;
@@ -63,7 +63,7 @@ ptw32_rwlock_check_need_init(pthread_rwlock_t *rwlock)
* the number of processors + 1.
*
*/
- EnterCriticalSection(&ptw32_rwlock_test_init_lock);
+ EnterCriticalSection (&ptw32_rwlock_test_init_lock);
/*
* We got here possibly under race
@@ -75,7 +75,7 @@ ptw32_rwlock_check_need_init(pthread_rwlock_t *rwlock)
*/
if (*rwlock == PTHREAD_RWLOCK_INITIALIZER)
{
- result = pthread_rwlock_init(rwlock, NULL);
+ result = pthread_rwlock_init (rwlock, NULL);
}
else if (*rwlock == NULL)
{
@@ -87,7 +87,7 @@ ptw32_rwlock_check_need_init(pthread_rwlock_t *rwlock)
result = EINVAL;
}
- LeaveCriticalSection(&ptw32_rwlock_test_init_lock);
+ LeaveCriticalSection (&ptw32_rwlock_test_init_lock);
return result;
}