From 05d763d642a4546b10f8aeddb8ccdf2dbbb4f050 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Thu, 23 Sep 1999 18:06:47 +0000 Subject: [PATCH] Fixed prototype for isc_condition_waituntil. Fixed calls to isc_time_now and isc_time_millidiff. --- lib/isc/win32/condition.c | 6 +++--- lib/isc/win32/include/isc/condition.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/isc/win32/condition.c b/lib/isc/win32/condition.c index 7ec915cbb8..ba5d745474 100644 --- a/lib/isc/win32/condition.c +++ b/lib/isc/win32/condition.c @@ -127,15 +127,15 @@ isc_condition_wait(isc_condition_t *cond, isc_mutex_t *mutex) { isc_result_t isc_condition_waituntil(isc_condition_t *cond, isc_mutex_t *mutex, - isc_time_t t) + isc_time_t *t) { DWORD milliseconds; struct isc_time now; - if (isc_time_get(&now) != ISC_R_SUCCESS) { + if (isc_time_now(&now) != ISC_R_SUCCESS) { /* XXX */ return (ISC_R_UNEXPECTED); } - milliseconds = (DWORD)isc_time_millidiff(t, now); + milliseconds = (DWORD)isc_time_millidiff(t, &now); return (wait(cond, mutex, milliseconds)); } diff --git a/lib/isc/win32/include/isc/condition.h b/lib/isc/win32/include/isc/condition.h index 3fa3686743..5ee0fb2c9f 100644 --- a/lib/isc/win32/include/isc/condition.h +++ b/lib/isc/win32/include/isc/condition.h @@ -36,6 +36,6 @@ isc_result_t isc_condition_signal(isc_condition_t *); isc_result_t isc_condition_broadcast(isc_condition_t *); isc_result_t isc_condition_destroy(isc_condition_t *); isc_result_t isc_condition_waituntil(isc_condition_t *, isc_mutex_t *, - isc_time_t); + isc_time_t *); #endif /* ISC_CONDITION_H */