From cee0f8b2e90d19e60a040df3c611516719be7225 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 10 Aug 2011 19:46:37 +0200 Subject: [PATCH] tally: Adapt tally_num to Samba coding conventions (Imported from SAMBA commit 3f67063dfab1a7add95da5157206ccebb2f75df8) --- 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 28a66a9f..52bd4e11 100644 --- a/ccan/tally/tally.c +++ b/ccan/tally/tally.c @@ -156,8 +156,9 @@ void tally_add(struct tally *tally, ssize_t val) size_t tally_num(const struct tally *tally) { size_t i, num = 0; - for (i = 0; i < tally->buckets; i++) + for (i = 0; i < tally->buckets; i++) { num += tally->counts[i]; + } return num; } -- 2.39.2