From 3f67063dfab1a7add95da5157206ccebb2f75df8 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 10 Aug 2011 19:46:37 +0200 Subject: Adapt tally_num to Samba coding conventions --- lib/ccan/tally/tally.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/ccan/tally/tally.c') diff --git a/lib/ccan/tally/tally.c b/lib/ccan/tally/tally.c index 28a66a9f7f..52bd4e11b9 100644 --- a/lib/ccan/tally/tally.c +++ b/lib/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; } -- cgit