diff options
author | Christian Weisgerber <naddy@cvs.openbsd.org> | 2012-04-11 13:29:15 +0000 |
---|---|---|
committer | Christian Weisgerber <naddy@cvs.openbsd.org> | 2012-04-11 13:29:15 +0000 |
commit | c4b11c6425b366e92546365516f06e13de8c7f43 (patch) | |
tree | 1f95aeb19637291b2b2a1d66e525e7f519936e56 /sys/net/pf.c | |
parent | d5290150086b92d9f526d7d6f699814291e74650 (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.c | 4 |
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); |