summaryrefslogtreecommitdiff
path: root/lib/ccan/tally
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-08-10 19:46:00 +0200
committerVolker Lendecke <vl@samba.org>2011-08-10 19:56:10 +0200
commit1fa4236c40a727d7ae648e12d14d1f0f9fcf79b5 (patch)
tree973bcd7f3f1035c40ca5f22774538d3e189f6d33 /lib/ccan/tally
parent4a3913fbb9399685785efa430765e0b5836ded60 (diff)
downloadsamba-1fa4236c40a727d7ae648e12d14d1f0f9fcf79b5.tar.gz
samba-1fa4236c40a727d7ae648e12d14d1f0f9fcf79b5.tar.bz2
samba-1fa4236c40a727d7ae648e12d14d1f0f9fcf79b5.zip
Adapt renormalize to Samba coding conventions
Diffstat (limited to 'lib/ccan/tally')
-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 4ece2364c3..4c5e37e9e0 100644
--- a/lib/ccan/tally/tally.c
+++ b/lib/ccan/tally/tally.c
@@ -88,8 +88,9 @@ static void renormalize(struct tally *tally,
unsigned int i, old_min;
/* Uninitialized? Don't do anything... */
- if (tally->max < tally->min)
+ if (tally->max < tally->min) {
goto update;
+ }
/* If we don't have sufficient range, increase step bits until
* buckets cover entire range of ssize_t anyway. */