diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2022-12-21 02:51:07 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2022-12-21 02:51:07 +0000 |
commit | 3461ee7e3becff67423afc70183ba72afd3d7488 (patch) | |
tree | 98d6ebba2043da6a9452cc60bcf067543723d4c8 /sys | |
parent | aa6ddb2ca4f08356dd428a5bf50d2152b64ccf69 (diff) |
consistently use the PF_REF wrappers around refcnts.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/pf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c index 2086c18a14f..fd5291f36ea 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.1158 2022/12/21 02:23:10 dlg Exp $ */ +/* $OpenBSD: pf.c,v 1.1159 2022/12/21 02:51:06 dlg Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -1507,7 +1507,7 @@ pf_state_import(const struct pfsync_state *sp, int flags) st->pfsync_time = getuptime(); st->sync_state = PFSYNC_S_NONE; - refcnt_init(&st->refcnt); + PF_REF_INIT(st->refcnt); mtx_init(&st->mtx, IPL_NET); /* XXX when we have anchors, use STATE_INC_COUNTERS */ @@ -4400,7 +4400,7 @@ pf_create_state(struct pf_pdesc *pd, struct pf_rule *r, struct pf_rule *a, * must initialize refcnt, before pf_state_insert() gets called. * pf_state_inserts() grabs reference for pfsync! */ - refcnt_init(&s->refcnt); + PF_REF_INIT(s->refcnt); mtx_init(&s->mtx, IPL_NET); switch (pd->proto) { |