diff options
author | Volker Lendecke <vl@samba.org> | 2011-08-10 19:52:58 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2011-08-10 19:56:12 +0200 |
commit | fed977514019e130322fb21ad5726ee997965898 (patch) | |
tree | 73e527e9d41dad96c849f4d35dd146f075493c64 /lib | |
parent | 35550ba641d251a2dc3762b08eda92d0f7ce6bed (diff) | |
download | samba-fed977514019e130322fb21ad5726ee997965898.tar.gz samba-fed977514019e130322fb21ad5726ee997965898.tar.bz2 samba-fed977514019e130322fb21ad5726ee997965898.zip |
Adapt get_max_bucket to Samba coding conventions
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ccan/tally/tally.c | 6 |
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; } |