From fed977514019e130322fb21ad5726ee997965898 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 10 Aug 2011 19:52:58 +0200 Subject: Adapt get_max_bucket to Samba coding conventions --- lib/ccan/tally/tally.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/ccan') diff --git a/lib/ccan/tally/tally.c b/lib/ccan/tally/tally.c index 20e99dcb87..b1bc70b8db 100644 --- a/lib/ccan/tally/tally.c +++ b/lib/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; } -- cgit