]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r293015:
authordim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 3 Jan 2016 17:23:16 +0000 (17:23 +0000)
committerdim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 3 Jan 2016 17:23:16 +0000 (17:23 +0000)
commitb67b43aa73ef5867dfc6033548280534ee4d5b10
tree7d096fdd82af7b685c53f44667207452bc61175c
parentd91245c5845ae9dd03ad63545bf3d1bc79b5d157
MFC r293015:

Merge r293013 from clang380-import branch:

Fix a clang 3.8.0 warning in pflogd.c:

contrib/pf/pflogd/pflogd.c:769:8: error: logical not is only applied to the left hand side of this comparison [-Werror,-Wlogical-not-parentheses]
       if (!if_exists(interface) == -1) {
   ^                     ~~

The if_exists() function does not return -1, and even if it did, it
would not be the correct way to check.  Just ditch the == -1 instead.

Obtained from: OpenBSD's pflogd.c 1.49

git-svn-id: svn://svn.freebsd.org/base/stable/9@293110 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
contrib/pf/pflogd/pflogd.c