summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@cvs.openbsd.org>2012-04-11 13:29:15 +0000
committerChristian Weisgerber <naddy@cvs.openbsd.org>2012-04-11 13:29:15 +0000
commitc4b11c6425b366e92546365516f06e13de8c7f43 (patch)
tree1f95aeb19637291b2b2a1d66e525e7f519936e56 /sys/kern
parentd5290150086b92d9f526d7d6f699814291e74650 (diff)
SLIST_REMOVE_NEXT -> SLIST_REMOVE_AFTER for better consistency and
compatibility with FreeBSD/NetBSD. Also rename SIMPLEQ_REMOVE_NEXT to SIMPLEQ_REMOVE_AFTER. ok mikeb@ guenther@
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/sysv_sem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/sysv_sem.c b/sys/kern/sysv_sem.c
index 6a44c32d619..1a4caada430 100644
--- a/sys/kern/sysv_sem.c
+++ b/sys/kern/sysv_sem.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sysv_sem.c,v 1.42 2012/01/10 23:12:13 bluhm Exp $ */
+/* $OpenBSD: sysv_sem.c,v 1.43 2012/04/11 13:29:14 naddy Exp $ */
/* $NetBSD: sysv_sem.c,v 1.26 1996/02/09 19:00:25 christos Exp $ */
/*
@@ -210,7 +210,7 @@ semundo_clear(int semid, int semnum)
if (suptr == SLIST_FIRST(&semu_list))
SLIST_REMOVE_HEAD(&semu_list, un_next);
else
- SLIST_REMOVE_NEXT(&semu_list, suprev, un_next);
+ SLIST_REMOVE_AFTER(suprev, un_next);
suptr = SLIST_NEXT(suptr, un_next);
pool_put(&semu_pool, sutmp);
semutot--;