From c87814b777e1b492102cf4fcdc062dab40743c5e Mon Sep 17 00:00:00 2001 From: dlg Date: Wed, 21 Dec 2022 02:51:06 +0000 Subject: [PATCH] consistently use the PF_REF wrappers around refcnts. --- sys/net/pf.c | 6 +++--- 1 file 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) { -- 2.20.1