aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2025-11-21 22:43:47 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2025-11-21 22:43:47 +0000
commit88b38d43f557f59649c7c690cbd5f6ad61f2565a (patch)
treee17439580430c109fdb3424d3ba76c2ef5c86598
parentfd0296154d471daeaf113672cb989d5abea9a610 (diff)
ipfw: add extra parenthesis around ACTION_PTR() macro
This allows to immediately dereference ipfw_insn member.
-rw-r--r--sys/netinet/ip_fw.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/ip_fw.h b/sys/netinet/ip_fw.h
index 51e68c310915..f3b2dc051c7d 100644
--- a/sys/netinet/ip_fw.h
+++ b/sys/netinet/ip_fw.h
@@ -752,7 +752,7 @@ struct ip_fw {
#endif
#define ACTION_PTR(rule) \
- (ipfw_insn *)( (u_int32_t *)((rule)->cmd) + ((rule)->act_ofs) )
+ ((ipfw_insn *)( (uint32_t *)((rule)->cmd) + ((rule)->act_ofs) ))
#define RULESIZE(rule) (sizeof(*(rule)) + (rule)->cmd_len * 4 - 4)