From: Volker Lendecke Date: Wed, 10 Aug 2011 17:52:58 +0000 (+0200) Subject: tally: Adapt get_max_bucket to Samba coding conventions X-Git-Url: https://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=d1f92df64d098fbf612789b6c9929ff3e203adde;ds=inline tally: Adapt get_max_bucket to Samba coding conventions (Imported from SAMBA commit fed977514019e130322fb21ad5726ee997965898) --- diff --git a/ccan/tally/tally.c b/ccan/tally/tally.c index 20e99dcb..b1bc70b8 100644 --- a/ccan/tally/tally.c +++ b/ccan/tally/tally.c @@ -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; }