diff options
author | Kristof Provost <kp@FreeBSD.org> | 2015-10-25 18:09:03 +0000 |
---|---|---|
committer | Kristof Provost <kp@FreeBSD.org> | 2015-10-25 18:09:03 +0000 |
commit | 2602284308544b88f097e514dd165e429e7047e1 (patch) | |
tree | 7f244e0be1361cf88a57ad6976ffd351914b4638 /sys/net | |
parent | affa9cbb4fa144f4f66b7e61faf3c1f008ac749a (diff) | |
download | src-2602284308544b88f097e514dd165e429e7047e1.tar.gz src-2602284308544b88f097e514dd165e429e7047e1.zip |
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
Notes
Notes:
svn path=/head/; revision=289940
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/pfvar.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h index 62d85897d14a..2a7182e78b9f 100644 --- a/sys/net/pfvar.h +++ b/sys/net/pfvar.h @@ -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]) || \ |