From 5c8c1e2d86cfdb32719a60aa6cbcf39bdfcad98f Mon Sep 17 00:00:00 2001 From: art Date: Fri, 3 Mar 2000 11:46:09 +0000 Subject: [PATCH] Use the LIST_FIRST macro to get the head of zombproc list. --- sys/kern/kern_fork.c | 4 ++-- sys/kern/kern_synch.c | 4 ++-- sys/kern/kern_sysctl.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index f7ebb0d6fe1..55c0ac1710c 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_fork.c,v 1.29 2000/03/03 11:31:42 art Exp $ */ +/* $OpenBSD: kern_fork.c,v 1.30 2000/03/03 11:46:09 art Exp $ */ /* $NetBSD: kern_fork.c,v 1.29 1996/02/09 18:59:34 christos Exp $ */ /* @@ -228,7 +228,7 @@ again: } if (!doingzomb) { doingzomb = 1; - p2 = zombproc.lh_first; + p2 = LIST_FIRST(&zombproc); goto again; } } diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c index a43a53a51c8..4262d75af69 100644 --- a/sys/kern/kern_synch.c +++ b/sys/kern/kern_synch.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_synch.c,v 1.18 2000/03/03 11:31:43 art Exp $ */ +/* $OpenBSD: kern_synch.c,v 1.19 2000/03/03 11:46:09 art Exp $ */ /* $NetBSD: kern_synch.c,v 1.37 1996/04/22 01:38:37 christos Exp $ */ /*- @@ -816,7 +816,7 @@ db_show_all_procs(addr, haddr, count, modif) p = LIST_NEXT(p, p_list); if (p == 0 && doingzomb == 0) { doingzomb = 1; - p = zombproc.lh_first; + p = LIST_FIRST(&zombproc); } } } diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c index c3e93058743..1a5e37c1dbb 100644 --- a/sys/kern/kern_sysctl.c +++ b/sys/kern/kern_sysctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_sysctl.c,v 1.31 2000/03/03 11:31:43 art Exp $ */ +/* $OpenBSD: kern_sysctl.c,v 1.32 2000/03/03 11:46:09 art Exp $ */ /* $NetBSD: kern_sysctl.c,v 1.17 1996/05/20 17:49:05 mrg Exp $ */ /*- @@ -777,7 +777,7 @@ again: needed += sizeof(struct kinfo_proc); } if (doingzomb == 0) { - p = zombproc.lh_first; + p = LIST_FIRST(&zombproc); doingzomb++; goto again; } -- 2.20.1