diff options
-rw-r--r-- | sys/net/pfvar_priv.h | 6 |
1 files 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__);\ |