Browse Source

tally: Adapt tally_num to Samba coding conventions

(Imported from SAMBA commit 3f67063dfab1a7add95da5157206ccebb2f75df8)
Volker Lendecke 14 years ago
parent
commit
cee0f8b2e9
1 changed files with 2 additions and 1 deletions
  1. 2 1
      ccan/tally/tally.c

+ 2 - 1
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;
 }