Commit cee0f8b2 authored by Volker Lendecke's avatar Volker Lendecke Committed by Rusty Russell

tally: Adapt tally_num to Samba coding conventions

(Imported from SAMBA commit 3f67063dfab1a7add95da5157206ccebb2f75df8)
parent 252bd427
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment