From 70451597bca186f31d4a69aec0ae940fe90e3d56 Mon Sep 17 00:00:00 2001 From: rpj Date: Fri, 26 Oct 2001 00:16:28 +0000 Subject: * 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. --- ChangeLog | 9 +++++++++ semaphore.c | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a0e2fc2..93d5d80 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2001-10-26 Ross Johnson + + 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 * 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 */ -- cgit v1.2.3