summaryrefslogtreecommitdiff
path: root/lib/ccan
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-08-10 19:51:56 +0200
committerVolker Lendecke <vl@samba.org>2011-08-10 19:56:12 +0200
commit06a41594554a1a6881dcbf9d051a822f8f955b56 (patch)
tree1c5bbcab848a5aa057bbe0fcef767324ff48a693 /lib/ccan
parentf589af19821e12aba6145492fd4ded58f07131b8 (diff)
downloadsamba-06a41594554a1a6881dcbf9d051a822f8f955b56.tar.gz
samba-06a41594554a1a6881dcbf9d051a822f8f955b56.tar.bz2
samba-06a41594554a1a6881dcbf9d051a822f8f955b56.zip
Adapt tally_mean to Samba coding conventions
Diffstat (limited to 'lib/ccan')
-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 5602e75017..e166dd03c5 100644
--- a/lib/ccan/tally/tally.c
+++ b/lib/ccan/tally/tally.c
@@ -322,8 +322,9 @@ static int64_t divls64(int64_t u1, uint64_t u0, int64_t v)
ssize_t tally_mean(const struct tally *tally)
{
size_t count = tally_num(tally);
- if (!count)
+ if (!count) {
return 0;
+ }
if (sizeof(tally->total[0]) == sizeof(uint32_t)) {
/* Use standard 64-bit arithmetic. */