summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pstat
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-06-09 12:20:44 +0000
committerphk <phk@FreeBSD.org>2004-06-09 12:20:44 +0000
commit8641ff9ae29f1375107bab434c052a1a4e890c5b (patch)
tree8a330090795afe946430e31eede855fdc25899db /usr.sbin/pstat
parenta844f14b4a3f3f48166c03d64f1c6c776d0c0c4d (diff)
downloadFreeBSD-src-8641ff9ae29f1375107bab434c052a1a4e890c5b.zip
FreeBSD-src-8641ff9ae29f1375107bab434c052a1a4e890c5b.tar.gz
Update kvm mode to match kernel changes.
Diffstat (limited to 'usr.sbin/pstat')
-rw-r--r--usr.sbin/pstat/pstat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pstat/pstat.c b/usr.sbin/pstat/pstat.c
index 7fecfd7..7dd5fc2 100644
--- a/usr.sbin/pstat/pstat.c
+++ b/usr.sbin/pstat/pstat.c
@@ -212,7 +212,7 @@ static const char hdr[] =
static void
ttymode_kvm(void)
{
- SLIST_HEAD(, tty) tl;
+ TAILQ_HEAD(, tty) tl;
struct tty *tp, tty;
struct xtty xt;
@@ -221,7 +221,7 @@ ttymode_kvm(void)
xt.xt_size = sizeof xt;
if (kvm_read(kd, nl[NL_TTY_LIST].n_value, &tl, sizeof tl) != sizeof tl)
errx(1, "kvm_read(): %s", kvm_geterr(kd));
- tp = SLIST_FIRST(&tl);
+ tp = TAILQ_FIRST(&tl);
while (tp != NULL) {
if (kvm_read(kd, (u_long)tp, &tty, sizeof tty) != sizeof tty)
errx(1, "kvm_read(): %s", kvm_geterr(kd));
@@ -238,7 +238,7 @@ ttymode_kvm(void)
XT_COPY(olowat);
#undef XT_COPY
ttyprt(&xt);
- tp = tty.t_list.sle_next;
+ tp = TAILQ_NEXT(tp, t_list);
}
}
OpenPOWER on IntegriCloud