mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
Use macro API for <sys/queue.h>
This commit is contained in:
parent
1009e5708d
commit
6214433089
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=70527
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user