From: Arran Cudbard-Bell Date: Thu, 16 Jun 2022 14:10:11 +0000 (-0500) Subject: Minor style issue X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc4e639b0516d8b3008ce3d248ac6313a7ed7c81;p=thirdparty%2Ffreeradius-server.git Minor style issue --- diff --git a/src/lib/util/size.c b/src/lib/util/size.c index bc4c82a70ac..18877ebe7cf 100644 --- a/src/lib/util/size.c +++ b/src/lib/util/size.c @@ -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];