tally: Adapt tally_num to Samba coding conventions
[ccan] / ccan / tally / tally.c
index 28a66a9f7fa0ebf384c62d69de8b04b396f71cad..52bd4e11b903b661360390bd1c96dc34a875ed2b 100644 (file)
@@ -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;
 }