From 6214433089c3cc6ce7e214b238920a45c911bdf7 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Sat, 30 Dec 2000 22:06:19 +0000 Subject: [PATCH] Use macro API for --- sys/ddb/db_ps.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/ddb/db_ps.c b/sys/ddb/db_ps.c index f005fd832473..321621e1a630 100644 --- a/sys/ddb/db_ps.c +++ b/sys/ddb/db_ps.c @@ -52,8 +52,8 @@ db_ps(dummy1, dummy2, dummy3, dummy4) np = nprocs; - if (allproc.lh_first != NULL) - p = allproc.lh_first; + if (!LIST_EMPTY(&allproc)) + p = LIST_FIRST(&allproc); else p = &proc0; @@ -102,8 +102,8 @@ db_ps(dummy1, dummy2, dummy3, dummy4) } db_printf(" %s\n", p->p_comm ? p->p_comm : ""); - p = p->p_list.le_next; + p = LIST_NEXT(p, p_list); if (p == NULL && np > 0) - p = zombproc.lh_first; + p = LIST_FIRST(&zombproc); } }