From 8641ff9ae29f1375107bab434c052a1a4e890c5b Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 9 Jun 2004 12:20:44 +0000 Subject: Update kvm mode to match kernel changes. --- usr.sbin/pstat/pstat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.sbin/pstat') 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); } } -- cgit v1.1