]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r311649:
authordim <dim@FreeBSD.org>
Wed, 11 Jan 2017 20:45:27 +0000 (20:45 +0000)
committerdim <dim@FreeBSD.org>
Wed, 11 Jan 2017 20:45:27 +0000 (20:45 +0000)
commit2c09b49edf496d9ea1face9a6af2a0dcccfd55ad
treecbec0f474c2d3db6bbb47bbce716683352bb4086
parent0c25c64ddbf4c0ecfbbedd0658bbe1de1652c287
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.
contrib/ngatm/snmp_atm/snmp_atm.c