summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-08-10 19:45:24 +0200
committerVolker Lendecke <vl@samba.org>2011-08-10 19:56:10 +0200
commita2d1d0b51485f2d383d1d69fa3bd6b79b9e8d5aa (patch)
tree4a47b9a641cfe0f8f4fd24b595db250d8e88ccc5
parent68d0843437b05dc8a36091e4a307bfd912cbc09f (diff)
downloadsamba-a2d1d0b51485f2d383d1d69fa3bd6b79b9e8d5aa.tar.gz
samba-a2d1d0b51485f2d383d1d69fa3bd6b79b9e8d5aa.tar.bz2
samba-a2d1d0b51485f2d383d1d69fa3bd6b79b9e8d5aa.zip
Adapt bucket_min to Samba coding conventions
-rw-r--r--lib/ccan/tally/tally.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ccan/tally/tally.c b/lib/ccan/tally/tally.c
index 7eec70d393..1c471c1503 100644
--- a/lib/ccan/tally/tally.c
+++ b/lib/ccan/tally/tally.c
@@ -63,8 +63,9 @@ static unsigned bucket_of(ssize_t min, unsigned step_bits, ssize_t val)
static ssize_t bucket_min(ssize_t min, unsigned step_bits, unsigned b)
{
/* Don't over-shift. */
- if (step_bits == SIZET_BITS)
+ if (step_bits == SIZET_BITS) {
return min;
+ }
assert(step_bits < SIZET_BITS);
return min + ((ssize_t)b << step_bits);
}