summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_synch.c
diff options
context:
space:
mode:
authorart <art@openbsd.org>2000-03-03 11:46:09 +0000
committerart <art@openbsd.org>2000-03-03 11:46:09 +0000
commit5c8c1e2d86cfdb32719a60aa6cbcf39bdfcad98f (patch)
tree0f4273e511120984a65abd4f21a283c28ac3c45c /sys/kern/kern_synch.c
parentUse LIST_ macros instead of internal field names to walk the allproc list. (diff)
downloadwireguard-openbsd-5c8c1e2d86cfdb32719a60aa6cbcf39bdfcad98f.tar.xz
wireguard-openbsd-5c8c1e2d86cfdb32719a60aa6cbcf39bdfcad98f.zip
Use the LIST_FIRST macro to get the head of zombproc list.
Diffstat (limited to 'sys/kern/kern_synch.c')
-rw-r--r--sys/kern/kern_synch.c4
1 files changed, 2 insertions, 2 deletions
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);
}
}
}