Adapt tally_approx_median to Samba coding conventions
authorVolker Lendecke <vl@samba.org>
Wed, 10 Aug 2011 17:52:40 +0000 (19:52 +0200)
committerVolker Lendecke <vl@samba.org>
Wed, 10 Aug 2011 17:56:12 +0000 (19:56 +0200)
lib/ccan/tally/tally.c

index 936b5142561a9ec172fd86a96ddf88a529472842..20e99dcb870dac2d56c539e6873cc1618d84d22f 100644 (file)
@@ -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);
 }