Use macro API to <sys/queue.h>
Submitted by: Dima Dorfman <dima@unixfreak.org> Reviewed by: phk
This commit is contained in:
parent
c2ef0b73df
commit
3281461493
@ -702,7 +702,7 @@ struct proc *p;
|
||||
{
|
||||
struct proc lp;
|
||||
|
||||
for (; p != NULL; p = lp.p_list.le_next) {
|
||||
for (; p != NULL; p = LIST_NEXT(&lp, p_list)) {
|
||||
if (!kvm_read(cfd, (CORE_ADDR)p, (char *)&lp, sizeof (lp)))
|
||||
return (0);
|
||||
if (lp.p_pid != pid)
|
||||
|
@ -702,7 +702,7 @@ struct proc *p;
|
||||
{
|
||||
struct proc lp;
|
||||
|
||||
for (; p != NULL; p = lp.p_list.le_next) {
|
||||
for (; p != NULL; p = LIST_NEXT(&lp, p_list)) {
|
||||
if (!kvm_read(cfd, (CORE_ADDR)p, (char *)&lp, sizeof (lp)))
|
||||
return (0);
|
||||
if (lp.p_pid != pid)
|
||||
|
Loading…
Reference in New Issue
Block a user