summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2022-04-08 18:17:25 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2022-04-08 18:17:25 +0000
commit2383978a0cf98694c5776dfd807135cc41327c8d (patch)
tree2667f6e03677a1d3d1bc91393538f62f0df94208 /sys
parentf30d5236cd55d73b7268b3afb870812161b3932d (diff)
Rename the pf state assert locked macro consistently.
OK sashan@
Diffstat (limited to 'sys')
-rw-r--r--sys/net/pfvar_priv.h6
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__);\