summaryrefslogtreecommitdiff
path: root/lib/glthread/cond.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2008-10-14 03:40:49 +0200
committerBruno Haible <bruno@clisp.org>2008-10-14 03:40:49 +0200
commit44a64be5593bf0c5b49de64dd8204114eab7b521 (patch)
tree261bb00436e0e7fb5129c5360efcfc9f138d2a26 /lib/glthread/cond.c
parent3b8caead4388d424884b49c791a2e85d7750623f (diff)
downloadgnulib-44a64be5593bf0c5b49de64dd8204114eab7b521.tar.gz
Fix syntax error in native Win32 code.
Diffstat (limited to 'lib/glthread/cond.c')
-rw-r--r--lib/glthread/cond.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/glthread/cond.c b/lib/glthread/cond.c
index c35272e7c7..fe023f807b 100644
--- a/lib/glthread/cond.c
+++ b/lib/glthread/cond.c
@@ -179,7 +179,7 @@ glthread_cond_wait_func (gl_cond_t *cond, gl_lock_t *lock)
LeaveCriticalSection (&cond->lock);
return (err ? err :
- ret == WAIT_OBJECT_0 ? 0 :
+ result == WAIT_OBJECT_0 ? 0 :
/* WAIT_FAILED shouldn't happen */ EAGAIN);
}
}
@@ -305,8 +305,8 @@ glthread_cond_timedwait_func (gl_cond_t *cond, gl_lock_t *lock, struct timespec
LeaveCriticalSection (&cond->lock);
return (err ? err :
- ret == WAIT_OBJECT_0 ? 0 :
- ret == WAIT_TIMEOUT ? ETIMEDOUT :
+ result == WAIT_OBJECT_0 ? 0 :
+ result == WAIT_TIMEOUT ? ETIMEDOUT :
/* WAIT_FAILED shouldn't happen */ EAGAIN);
}
}