git: 88b38d43f557 - main - ipfw: add extra parenthesis around ACTION_PTR() macro

From: Gleb Smirnoff <glebius_at_FreeBSD.org>
Date: Fri, 21 Nov 2025 22:44:36 UTC
The branch main has been updated by glebius:

URL: https://cgit.FreeBSD.org/src/commit/?id=88b38d43f557f59649c7c690cbd5f6ad61f2565a

commit 88b38d43f557f59649c7c690cbd5f6ad61f2565a
Author:     Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2025-11-21 22:43:47 +0000
Commit:     Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2025-11-21 22:43:47 +0000

    ipfw: add extra parenthesis around ACTION_PTR() macro
    
    This allows to immediately dereference ipfw_insn member.
---
 sys/netinet/ip_fw.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)