Use the LIST_FIRST macro to get the head of zombproc list.
authorart <art@openbsd.org>
Fri, 3 Mar 2000 11:46:09 +0000 (11:46 +0000)
committerart <art@openbsd.org>
Fri, 3 Mar 2000 11:46:09 +0000 (11:46 +0000)
sys/kern/kern_fork.c
sys/kern/kern_synch.c
sys/kern/kern_sysctl.c

index f7ebb0d..55c0ac1 100644 (file)
@@ -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;
                }
        }
index a43a53a..4262d75 100644 (file)
@@ -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);
                }
        }
 }
index c3e9305..1a5e37c 100644 (file)
@@ -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;
        }