summaryrefslogtreecommitdiff
path: root/sys/net/pf.c
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/net/pf.c
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/net/pf.c')
-rw-r--r--sys/net/pf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c
index 02a6507a63d..69cf407522d 100644
--- a/sys/net/pf.c
+++ b/sys/net/pf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf.c,v 1.803 2012/04/03 15:09:03 mikeb Exp $ */
+/* $OpenBSD: pf.c,v 1.804 2012/04/11 13:29:14 naddy Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -617,7 +617,7 @@ pf_state_rm_src_node(struct pf_state *s, struct pf_src_node *sn)
snin = SLIST_NEXT(sni, next);
if (sni->sn == sn) {
if (snip)
- SLIST_REMOVE_NEXT(&s->src_nodes, snip, next);
+ SLIST_REMOVE_AFTER(snip, next);
else
SLIST_REMOVE_HEAD(&s->src_nodes, next);
pool_put(&pf_sn_item_pl, sni);