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 | |
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.
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | semaphore.c | 3 |
2 files changed, 11 insertions, 1 deletions
@@ -1,3 +1,12 @@ +2001-10-26 Ross Johnson <rpj@special.ise.canberra.edu.au> + + Reported by - prionx@juno.com + + * 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. + 2001-10-25 Ross Johnson <rpj@setup1.ise.canberra.edu.au> * GNUmakefile (libwsock32): Add to linker flags for 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 */ |