Browse Source

tally: Adapt get_max_bucket to Samba coding conventions

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

+ 4 - 2
ccan/tally/tally.c

@@ -422,9 +422,11 @@ static unsigned get_max_bucket(const struct tally *tally)
 {
 	unsigned int i;
 
-	for (i = tally->buckets; i > 0; i--)
-		if (tally->counts[i-1])
+	for (i = tally->buckets; i > 0; i--) {
+		if (tally->counts[i-1]) {
 			break;
+		}
+	}
 	return i;
 }