From c148ed96ea64a200e4c71f13837647dc4613d06c Mon Sep 17 00:00:00 2001 From: gad Date: Sun, 28 Mar 2004 02:13:31 +0000 Subject: Fix `-o rtprio' so it prints the correct value. PR: bin/59417 Submitted by: Jan Willem Knopper This fix by: bde (in the audit-trail of the PR) --- bin/ps/print.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/ps/print.c b/bin/ps/print.c index 7e0f816..ab25e77 100644 --- a/bin/ps/print.c +++ b/bin/ps/print.c @@ -653,9 +653,9 @@ priorityr(KINFO *k, VARENT *ve) struct priority *lpri; char str[8]; unsigned class, level; - + v = ve->var; - lpri = (struct priority *) ((char *)k + v->off); + lpri = &k->ki_p->ki_pri; class = lpri->pri_class; level = lpri->pri_level; switch (class) { -- cgit v1.1