Browse Source

tally: Adapt tally_approx_median to Samba coding conventions

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

+ 2 - 1
ccan/tally/tally.c

@@ -386,8 +386,9 @@ ssize_t tally_approx_median(const struct tally *tally, size_t *err)
 
 	for (i = 0; i < tally->buckets; i++) {
 		total += tally->counts[i];
-		if (total * 2 >= count)
+		if (total * 2 >= count) {
 			break;
+		}
 	}
 	return bucket_range(tally, i, err);
 }