diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2013-03-26 21:13:56 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2013-03-26 21:13:56 +0000 |
commit | 1f7859be2fb1317dc3b5122fdc21111172b73b0b (patch) | |
tree | a387b17ddb04bacca91910873152988866ea39fc /usr.bin/vmstat | |
parent | 1dca66ccd4d26b83020d644d74b8305c0b90e7bc (diff) |
i broke it. tailq is now simpleq in pool.
found the hard way by otto.
Diffstat (limited to 'usr.bin/vmstat')
-rw-r--r-- | usr.bin/vmstat/vmstat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c index 9e9b718082e..31a6b299033 100644 --- a/usr.bin/vmstat/vmstat.c +++ b/usr.bin/vmstat/vmstat.c @@ -1,5 +1,5 @@ /* $NetBSD: vmstat.c,v 1.29.4.1 1996/06/05 00:21:05 cgd Exp $ */ -/* $OpenBSD: vmstat.c,v 1.119 2012/04/12 12:33:04 deraadt Exp $ */ +/* $OpenBSD: vmstat.c,v 1.120 2013/03/26 21:13:55 tedu Exp $ */ /* * Copyright (c) 1980, 1986, 1991, 1993 @@ -1030,14 +1030,14 @@ dopool_sysctl(void) void dopool_kvm(void) { - TAILQ_HEAD(,pool) pool_head; + SIMPLEQ_HEAD(,pool) pool_head; struct pool pool, *pp = &pool; long total = 0, inuse = 0; u_long addr; int kmfp; kread(X_POOLHEAD, &pool_head, sizeof(pool_head)); - addr = (u_long)TAILQ_FIRST(&pool_head); + addr = (u_long)SIMPLEQ_FIRST(&pool_head); while (addr != 0) { char name[32]; @@ -1062,7 +1062,7 @@ dopool_kvm(void) inuse += (pp->pr_nget - pp->pr_nput) * pp->pr_size; total += pp->pr_npages * getpagesize(); /* XXX */ - addr = (u_long)TAILQ_NEXT(pp, pr_poollist); + addr = (u_long)SIMPLEQ_NEXT(pp, pr_poollist); } inuse /= 1024; |