summaryrefslogtreecommitdiff
path: root/lib/ccan/tally
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-08-10 19:52:58 +0200
committerVolker Lendecke <vl@samba.org>2011-08-10 19:56:12 +0200
commitfed977514019e130322fb21ad5726ee997965898 (patch)
tree73e527e9d41dad96c849f4d35dd146f075493c64 /lib/ccan/tally
parent35550ba641d251a2dc3762b08eda92d0f7ce6bed (diff)
downloadsamba-fed977514019e130322fb21ad5726ee997965898.tar.gz
samba-fed977514019e130322fb21ad5726ee997965898.tar.bz2
samba-fed977514019e130322fb21ad5726ee997965898.zip
Adapt get_max_bucket to Samba coding conventions
Diffstat (limited to 'lib/ccan/tally')
-rw-r--r--lib/ccan/tally/tally.c6
1 files changed, 4 insertions, 2 deletions
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;
}