summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-08-10 19:46:37 +0200
committerVolker Lendecke <vl@samba.org>2011-08-10 19:56:11 +0200
commit3f67063dfab1a7add95da5157206ccebb2f75df8 (patch)
tree532d04cf05f3054ccbb93c45a5ff2890bf5e8902 /lib
parent9c32c86783bf6a3e126e6e83f51ccdf0ecdd132d (diff)
downloadsamba-3f67063dfab1a7add95da5157206ccebb2f75df8.tar.gz
samba-3f67063dfab1a7add95da5157206ccebb2f75df8.tar.bz2
samba-3f67063dfab1a7add95da5157206ccebb2f75df8.zip
Adapt tally_num to Samba coding conventions
Diffstat (limited to 'lib')
-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 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;
}