From 6697a3dde2b3e1aa180622bd5f909bba3a8fd948 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 10 Aug 2011 19:51:56 +0200 Subject: [PATCH] tally: Adapt tally_mean to Samba coding conventions (Imported from SAMBA commit 06a41594554a1a6881dcbf9d051a822f8f955b56) --- ccan/tally/tally.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ccan/tally/tally.c b/ccan/tally/tally.c index 5602e750..e166dd03 100644 --- a/ccan/tally/tally.c +++ b/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. */ -- 2.39.2