summaryrefslogtreecommitdiff
path: root/semaphore.c
diff options
context:
space:
mode:
Diffstat (limited to 'semaphore.c')
-rw-r--r--semaphore.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/semaphore.c b/semaphore.c
index 8819df1..1e23285 100644
--- a/semaphore.c
+++ b/semaphore.c
@@ -105,7 +105,7 @@ sem_init (sem_t * sem, int pshared, unsigned int value)
FALSE, /* manual reset */
FALSE, /* initial state */
NULL);
- if (0 == s->Event)
+ if (0 == s->event)
{
result = ENOSPC;
}
@@ -118,6 +118,7 @@ sem_init (sem_t * sem, int pshared, unsigned int value)
InitializeCriticalSection(&s->sem_lock_cs);
}
+ }
#else /* NEED_SEM */