diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-11-20 10:00:46 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-11-20 10:00:46 +0000 |
| commit | 0429e37ade0f33fd1159e425bfa5a5d531b3e8a1 (patch) | |
| tree | c111db9be70768372eebad9bfc9cbe47bb8a0a9d /usr.sbin/pstat | |
| parent | c18f2d82a59724bfa2abb6b195eb2c0d281e3261 (diff) | |
Notes
Diffstat (limited to 'usr.sbin/pstat')
| -rw-r--r-- | usr.sbin/pstat/pstat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pstat/pstat.c b/usr.sbin/pstat/pstat.c index f76a94c08323..24fb15716bd0 100644 --- a/usr.sbin/pstat/pstat.c +++ b/usr.sbin/pstat/pstat.c @@ -677,9 +677,9 @@ kinfo_vnodes(avnodes) bp = vbuf; evbuf = vbuf + (numvnodes + 20) * (VPTRSZ + VNODESZ); KGET(V_MOUNTLIST, mountlist); - for (num = 0, mp = mountlist.cqh_first; ; mp = mp_next) { + for (num = 0, mp = TAILQ_FIRST(&mountlist); ; mp = mp_next) { KGET2(mp, &mount, sizeof(mount), "mount entry"); - mp_next = mount.mnt_list.cqe_next; + mp_next = TAILQ_NEXT(&mount, mnt_list); for (vp = mount.mnt_vnodelist.lh_first; vp != NULL; vp = vp_next) { KGET2(vp, &vnode, sizeof(vnode), "vnode"); @@ -693,7 +693,7 @@ kinfo_vnodes(avnodes) bp += VNODESZ; num++; } - if (mp == mountlist.cqh_last) + if (mp == TAILQ_LAST(&mountlist, mntlist)) break; } *avnodes = num; |
