diff options
author | phk <phk@FreeBSD.org> | 2000-12-30 22:06:19 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2000-12-30 22:06:19 +0000 |
commit | 72cd3208b3c5a18d69cc4ff84ee418452d56324b (patch) | |
tree | 374454951e1995719dd5a020a7bce5013052a910 /sys/ddb/db_ps.c | |
parent | f2049d4440aeb04c6d2abff0d6e9760ea9da4699 (diff) | |
download | FreeBSD-src-72cd3208b3c5a18d69cc4ff84ee418452d56324b.zip FreeBSD-src-72cd3208b3c5a18d69cc4ff84ee418452d56324b.tar.gz |
Use macro API for <sys/queue.h>
Diffstat (limited to 'sys/ddb/db_ps.c')
-rw-r--r-- | sys/ddb/db_ps.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/ddb/db_ps.c b/sys/ddb/db_ps.c index f005fd8..321621e 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); } } |