]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
clarify precedence from cppcheck
authorAlan T. DeKok <aland@freeradius.org>
Wed, 9 Jan 2019 15:11:22 +0000 (10:11 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 9 Jan 2019 15:11:22 +0000 (10:11 -0500)
src/lib/soh/soh.c

index 78e27643601a6b77aa158c5843e6c87e6cbadf4c..fa2b104c07941c51b5152ed8daa45612f96329f4 100644 (file)
@@ -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 {