Adapt get_max_bucket to Samba coding conventions
authorVolker Lendecke <vl@samba.org>
Wed, 10 Aug 2011 17:52:58 +0000 (19:52 +0200)
committerVolker Lendecke <vl@samba.org>
Wed, 10 Aug 2011 17:56:12 +0000 (19:56 +0200)
lib/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;
 }