From c70493106c794797cfb174ed7460065b1a4a89f7 Mon Sep 17 00:00:00 2001 From: bluhm Date: Fri, 8 Apr 2022 18:17:24 +0000 Subject: [PATCH] Rename the pf state assert locked macro consistently. OK sashan@ --- sys/net/pfvar_priv.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/net/pfvar_priv.h b/sys/net/pfvar_priv.h index 16716a6ddd6..092258d4159 100644 --- a/sys/net/pfvar_priv.h +++ b/sys/net/pfvar_priv.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pfvar_priv.h,v 1.8 2022/01/02 22:36:04 jsg Exp $ */ +/* $OpenBSD: pfvar_priv.h,v 1.9 2022/04/08 18:17:24 bluhm Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -249,11 +249,11 @@ extern struct rwlock pf_state_lock; } while (0) #define PF_STATE_EXIT_WRITE() do { \ - PF_ASSERT_STATE_LOCKED(); \ + PF_STATE_ASSERT_LOCKED(); \ rw_exit_write(&pf_state_lock); \ } while (0) -#define PF_ASSERT_STATE_LOCKED() do { \ +#define PF_STATE_ASSERT_LOCKED() do { \ if (rw_status(&pf_state_lock) != RW_WRITE)\ splassert_fail(RW_WRITE, \ rw_status(&pf_state_lock), __func__);\ -- 2.20.1