summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-08-10 19:45:14 +0200
committerVolker Lendecke <vl@samba.org>2011-08-10 19:56:10 +0200
commit68d0843437b05dc8a36091e4a307bfd912cbc09f (patch)
tree758ed769360f62c6276e870791dd7dbcbc66f7d4
parentc6ae297d613fc22b92c34d26c61ec1715058b484 (diff)
downloadsamba-68d0843437b05dc8a36091e4a307bfd912cbc09f.tar.gz
samba-68d0843437b05dc8a36091e4a307bfd912cbc09f.tar.bz2
samba-68d0843437b05dc8a36091e4a307bfd912cbc09f.zip
Adapt bucket_of 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 d67112c2cf..7eec70d393 100644
--- a/lib/ccan/tally/tally.c
+++ b/lib/ccan/tally/tally.c
@@ -52,8 +52,9 @@ struct tally *tally_new(unsigned buckets)
static unsigned bucket_of(ssize_t min, unsigned step_bits, ssize_t val)
{
/* Don't over-shift. */
- if (step_bits == SIZET_BITS)
+ if (step_bits == SIZET_BITS) {
return 0;
+ }
assert(step_bits < SIZET_BITS);
return (size_t)(val - min) >> step_bits;
}