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)