summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/libc/db/mpool/mpool.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/db/mpool/mpool.c b/lib/libc/db/mpool/mpool.c
index 9792a1c5ce3..83791ee37a2 100644
--- a/lib/libc/db/mpool/mpool.c
+++ b/lib/libc/db/mpool/mpool.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpool.c,v 1.14 2005/08/05 13:03:00 espie Exp $ */
+/* $OpenBSD: mpool.c,v 1.15 2005/10/10 19:23:41 otto Exp $ */
/*-
* Copyright (c) 1990, 1993, 1994
@@ -289,8 +289,8 @@ mpool_close(MPOOL *mp)
BKT *bp;
/* Free up any space allocated to the lru pages. */
- while ((bp = mp->lqh.cqh_first) != (void *)&mp->lqh) {
- CIRCLEQ_REMOVE(&mp->lqh, mp->lqh.cqh_first, q);
+ while ((bp = CIRCLEQ_FIRST(&mp->lqh)) != CIRCLEQ_END(&mp->lqh)) {
+ CIRCLEQ_REMOVE(&mp->lqh, bp, q);
free(bp);
}