diff options
author | Zheng Da <zhengda1936@gmail.com> | 2009-12-15 06:16:50 +0100 |
---|---|---|
committer | Zheng Da <zhengda1936@gmail.com> | 2009-12-15 06:16:50 +0100 |
commit | 8bf044ed70a43e5dcbd14f531e74221c4e939442 (patch) | |
tree | 37f67526b07ee0d4ae51fe6d85a8cb0276ab1e9c /libddekit/condvar.c | |
parent | d14ef0ec0bf54f4a3290d5df196304f2b01b5901 (diff) |
fix a bug in condvar.
Diffstat (limited to 'libddekit/condvar.c')
-rw-r--r-- | libddekit/condvar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libddekit/condvar.c b/libddekit/condvar.c index bbd49417..391a20fa 100644 --- a/libddekit/condvar.c +++ b/libddekit/condvar.c @@ -24,7 +24,7 @@ ddekit_condvar_t *ddekit_condvar_init() { void ddekit_condvar_wait(ddekit_condvar_t *cvp, ddekit_lock_t *mp) { /* This isn't nice. The encapsulation is broken. * TODO I can merge the two files condvar.c and lock.c. */ - condition_wait (&cvp->cond, (struct mutex *) mp); + condition_wait (&cvp->cond, (struct mutex *) *mp); } int ddekit_condvar_wait_timed(ddekit_condvar_t *cvp, |