]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Minor style issue
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 16 Jun 2022 14:10:11 +0000 (09:10 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 16 Jun 2022 14:10:11 +0000 (09:10 -0500)
src/lib/util/size.c

index bc4c82a70acdb2724d93291c589125c959133522..18877ebe7cfbf994ffe2f46ace3da50c63c6c80f 100644 (file)
@@ -178,7 +178,7 @@ fr_slen_t fr_size_to_str(fr_sbuff_t *out, size_t in)
 
        int8_t pos2 = fr_low_bit_pos(in) - 1;
        int8_t pos10;
-       size_t temp;
+       size_t tmp;
 
        /*
         *      Fast path - Won't be divisible by a power of 1000 or a power of 1024
@@ -188,7 +188,7 @@ fr_slen_t fr_size_to_str(fr_sbuff_t *out, size_t in)
        /*
         *      Get a count of trailing decimal zeroes.
         */
-       for (temp = in, pos10 = 0; temp && temp % 10 == 0; pos10++) temp /= 10;
+       for (tmp = in, pos10 = 0; tmp && ((tmp % 10) == 0); pos10++) tmp /= 10;
 
        if (pos10 >= 3) unit = &base10_units[(pos10) / 3];
        else if (pos2 >= 10) unit = &base2_units[pos2 / 10];