From: Alan T. DeKok Date: Wed, 9 Jan 2019 15:11:22 +0000 (-0500) Subject: clarify precedence from cppcheck X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09a789a30ce2404491ade6f46f2dacbaf86daa86;p=thirdparty%2Ffreeradius-server.git clarify precedence from cppcheck --- diff --git a/src/lib/soh/soh.c b/src/lib/soh/soh.c index 78e27643601..fa2b104c079 100644 --- a/src/lib/soh/soh.c +++ b/src/lib/soh/soh.c @@ -257,7 +257,7 @@ static int eap_peap_soh_mstlv(REQUEST *request, uint8_t const *p, unsigned int d */ case 3: - RDEBUG3("SoH MS-Packet-Info %s vers=%i", *p & 0x10 ? "request" : "response", *p & 0xf); + RDEBUG3("SoH MS-Packet-Info %s vers=%i", (*p & 0x10) ? "request" : "response", *p & 0xf); p++; data_len--; break; @@ -684,10 +684,10 @@ int soh_verify(REQUEST *request, uint8_t const *data, unsigned int data_len) { fr_pair_value_snprintf(vp, "%s ok snoozed=%i microsoft=%i up2date=%i enabled=%i", s, - hcstatus & 0x8 ? 1 : 0, - hcstatus & 0x4 ? 1 : 0, - hcstatus & 0x2 ? 1 : 0, - hcstatus & 0x1 ? 1 : 0 + (hcstatus & 0x8) ? 1 : 0, + (hcstatus & 0x4) ? 1 : 0, + (hcstatus & 0x2) ? 1 : 0, + (hcstatus & 0x1) ? 1 : 0 ); } } else {