diff options
| author | Brian Feldman <green@FreeBSD.org> | 2000-12-30 16:10:32 +0000 |
|---|---|---|
| committer | Brian Feldman <green@FreeBSD.org> | 2000-12-30 16:10:32 +0000 |
| commit | 429d49129b2e589818f6477faf1a99f6cce44b91 (patch) | |
| tree | fcdce9b892ed1e18af6a2bedeff7eaa7aa8c6bf0 /lib/libc/db/mpool/mpool.c | |
| parent | 26a2d90362b756a517f8a3afc7715ee4169c47c0 (diff) | |
Notes
Diffstat (limited to 'lib/libc/db/mpool/mpool.c')
| -rw-r--r-- | lib/libc/db/mpool/mpool.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/db/mpool/mpool.c b/lib/libc/db/mpool/mpool.c index 59ed4d3d0ce1..a4ab9126b77b 100644 --- a/lib/libc/db/mpool/mpool.c +++ b/lib/libc/db/mpool/mpool.c @@ -271,7 +271,8 @@ mpool_close(mp) BKT *bp; /* Free up any space allocated to the lru pages. */ - while ((bp = TAILQ_FIRST(&mp->lqh)) != (void *)&mp->lqh) { + while (!TAILQ_EMPTY(&mp->lqh)) { + bp = TAILQ_FIRST(&mp->lqh); TAILQ_REMOVE(&mp->lqh, bp, q); free(bp); } |
