summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrpj <rpj>2001-10-26 00:16:28 +0000
committerrpj <rpj>2001-10-26 00:16:28 +0000
commit70451597bca186f31d4a69aec0ae940fe90e3d56 (patch)
treecd27be8780e3744174b22c70b4ed285402b63976
parent820ca4b34c23ef8d91edade437f0f9fd781f8b89 (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--ChangeLog9
-rw-r--r--semaphore.c3
2 files changed, 11 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a0e2fc2..93d5d80 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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 */