diff options
author | Volker Lendecke <vl@samba.org> | 2011-08-10 19:45:14 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2011-08-10 19:56:10 +0200 |
commit | 68d0843437b05dc8a36091e4a307bfd912cbc09f (patch) | |
tree | 758ed769360f62c6276e870791dd7dbcbc66f7d4 /lib/ccan | |
parent | c6ae297d613fc22b92c34d26c61ec1715058b484 (diff) | |
download | samba-68d0843437b05dc8a36091e4a307bfd912cbc09f.tar.gz samba-68d0843437b05dc8a36091e4a307bfd912cbc09f.tar.bz2 samba-68d0843437b05dc8a36091e4a307bfd912cbc09f.zip |
Adapt bucket_of to Samba coding conventions
Diffstat (limited to 'lib/ccan')
-rw-r--r-- | lib/ccan/tally/tally.c | 3 |
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; } |