From 21eb2ca7bcdcf122eca60f2e0e7a00361e1e177c Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Fri, 16 Oct 1998 22:15:23 +0000 Subject: [PATCH] more complete fix for typo --- lib/isc/pthreads/condition.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/isc/pthreads/condition.c b/lib/isc/pthreads/condition.c index 1943cb3b6b..3f1c60a5ea 100644 --- a/lib/isc/pthreads/condition.c +++ b/lib/isc/pthreads/condition.c @@ -6,13 +6,11 @@ boolean_t os_condition_waituntil(os_condition_t *c, os_mutex_t *m, os_time_t *t, boolean_t *timeout) { - int result; struct timespec ts; ts.tv_sec = t->seconds; ts.tv_nsec = t->nanoseconds; - result = pthread_cond_timedwait(c, m, &ts); - if (result == 0) { + if (pthread_cond_timedwait(c, m, &ts) == 0) { *timeout = FALSE; return (TRUE); } else if (errno == ETIMEDOUT) {