]> git.ozlabs.org Git - ccan/blobdiff - ccan/tally/tally.c
tally: Adapt get_max_bucket to Samba coding conventions
[ccan] / ccan / tally / tally.c
index 20e99dcb870dac2d56c539e6873cc1618d84d22f..b1bc70b8dbeb7350dcfca63767fea4abbee6ef71 100644 (file)
@@ -422,9 +422,11 @@ static unsigned get_max_bucket(const struct tally *tally)
 {
        unsigned int i;
 
-       for (i = tally->buckets; i > 0; i--)
-               if (tally->counts[i-1])
+       for (i = tally->buckets; i > 0; i--) {
+               if (tally->counts[i-1]) {
                        break;
+               }
+       }
        return i;
 }