From: Volker Lendecke Date: Wed, 10 Aug 2011 17:46:37 +0000 (+0200) Subject: tally: Adapt tally_num to Samba coding conventions X-Git-Url: http://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=cee0f8b2e90d19e60a040df3c611516719be7225;hp=252bd427f813c2709c07e64378d5a6c67f51a922 tally: Adapt tally_num to Samba coding conventions (Imported from SAMBA commit 3f67063dfab1a7add95da5157206ccebb2f75df8) --- 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; }