diff options
author | rpj <rpj> | 2001-10-26 00:16:28 +0000 |
---|---|---|
committer | rpj <rpj> | 2001-10-26 00:16:28 +0000 |
commit | 70451597bca186f31d4a69aec0ae940fe90e3d56 (patch) | |
tree | cd27be8780e3744174b22c70b4ed285402b63976 /semaphore.c | |
parent | 820ca4b34c23ef8d91edade437f0f9fd781f8b89 (diff) |
* semaphore.c (sem_init): Fix typo and missing bracket
in conditionally compiled code. Only older versions of
WinCE require this code, hence it doesn't normally get
tested.
Diffstat (limited to 'semaphore.c')
-rw-r--r-- | semaphore.c | 3 |
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 */ |