From d1f92df64d098fbf612789b6c9929ff3e203adde Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 10 Aug 2011 19:52:58 +0200 Subject: [PATCH] tally: Adapt get_max_bucket to Samba coding conventions (Imported from SAMBA commit fed977514019e130322fb21ad5726ee997965898) --- ccan/tally/tally.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; } -- 2.39.2