]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r311649:
authordim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 11 Jan 2017 20:45:27 +0000 (20:45 +0000)
committerdim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 11 Jan 2017 20:45:27 +0000 (20:45 +0000)
commit87f5b59b6d690d4896c4c9b0b0462e4508624563
tree2b3d02ea7394e6e191891b4f2bac7e375ed15394
parentcc434ccf91a810fae10bce06026b6d52d5eba0dc
MFC r311649:

Fix the following clang 4.0.0 warning in ngatm's snmp_atm.c:

    contrib/ngatm/snmp_atm/snmp_atm.c:173:6: error: logical not is only
    applied to the left hand side of this bitwise operator
    [-Werror,-Wlogical-not-parentheses]
            if (!ifmr.ifm_status & IFM_AVALID) {
                ^                ~

Obviously, the masking needs to be done before the logical not
operation.  Add parentheses to make it so.

git-svn-id: svn://svn.freebsd.org/base/stable/10@311937 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
contrib/ngatm/snmp_atm/snmp_atm.c