mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-19 02:29:40 +00:00
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. MFC after: 3 days
This commit is contained in:
parent
d4cd50b494
commit
00742f6ced
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=311649
@ -170,7 +170,7 @@ atmif_check_carrier(struct atmif_priv *aif)
|
||||
aif->pub.carrier = ATMIF_CARRIER_UNKNOWN;
|
||||
return;
|
||||
}
|
||||
if (!ifmr.ifm_status & IFM_AVALID) {
|
||||
if (!(ifmr.ifm_status & IFM_AVALID)) {
|
||||
aif->pub.carrier = ATMIF_CARRIER_UNKNOWN;
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user