mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-20 00:33:57 +00:00
pf: Fix compliation warning with gcc
While fixing the PF_ANEQ() macro I messed up the parentheses, leading to compliation warnings with gcc. Spotted by: ian Pointy Hat: kp
This commit is contained in:
parent
affa9cbb4f
commit
2602284308
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=289940
|
@ -199,10 +199,10 @@ extern struct rwlock pf_rules_lock;
|
|||
|
||||
#define PF_ANEQ(a, b, c) \
|
||||
((c == AF_INET && (a)->addr32[0] != (b)->addr32[0]) || \
|
||||
(c == AF_INET6 && (a)->addr32[3] != (b)->addr32[3] && \
|
||||
(c == AF_INET6 && ((a)->addr32[0] != (b)->addr32[0] || \
|
||||
(a)->addr32[1] != (b)->addr32[1] || \
|
||||
(a)->addr32[2] != (b)->addr32[2] || \
|
||||
(a)->addr32[3] != (b)->addr32[3])) \
|
||||
(a)->addr32[3] != (b)->addr32[3]))) \
|
||||
|
||||
#define PF_AZERO(a, c) \
|
||||
((c == AF_INET && !(a)->addr32[0]) || \
|
||||
|
|
Loading…
Reference in a new issue