diff options
-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 */ |