tally: Adapt get_max_bucket to Samba coding conventions
authorVolker Lendecke <vl@samba.org>
Wed, 10 Aug 2011 17:52:58 +0000 (19:52 +0200)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Aug 2011 01:09:12 +0000 (10:39 +0930)
(Imported from SAMBA commit fed977514019e130322fb21ad5726ee997965898)

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;
 }