From 3281461493ef4c88d1ce792ef4662b706597fe7c Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Sun, 31 Dec 2000 11:22:42 +0000 Subject: [PATCH] Use macro API to Submitted by: Dima Dorfman Reviewed by: phk --- gnu/usr.bin/binutils/gdb/i386/kvm-fbsd.c | 2 +- gnu/usr.bin/binutils/gdb/kvm-fbsd.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/usr.bin/binutils/gdb/i386/kvm-fbsd.c b/gnu/usr.bin/binutils/gdb/i386/kvm-fbsd.c index b2e8edf4915c..cc234f997eb7 100644 --- a/gnu/usr.bin/binutils/gdb/i386/kvm-fbsd.c +++ b/gnu/usr.bin/binutils/gdb/i386/kvm-fbsd.c @@ -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) diff --git a/gnu/usr.bin/binutils/gdb/kvm-fbsd.c b/gnu/usr.bin/binutils/gdb/kvm-fbsd.c index b2e8edf4915c..cc234f997eb7 100644 --- a/gnu/usr.bin/binutils/gdb/kvm-fbsd.c +++ b/gnu/usr.bin/binutils/gdb/kvm-fbsd.c @@ -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)