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:
Kristof Provost 2015-10-25 18:09:03 +00:00
parent affa9cbb4f
commit 2602284308
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=289940

View File

@ -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]) || \