summaryrefslogtreecommitdiff
path: root/t/helper
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2020-04-23 16:59:07 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-04-23 16:05:29 -0700
commit24b7d1e7b07aa1329d0d75f7922af8ef3e0782d2 (patch)
tree60f13a8e554cb3fdf641b887bc5ae7876b5783d5 /t/helper
parentblame: drop unused parameter from maybe_changed_path (diff)
downloadtgif-24b7d1e7b07aa1329d0d75f7922af8ef3e0782d2.tar.xz
test-bloom: fix some whitespace issues
Signed-off-by: Jeff King <peff@peff.net> Reviewed-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper')
-rw-r--r--t/helper/test-bloom.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/t/helper/test-bloom.c b/t/helper/test-bloom.c
index ce412664ba..f9c0ce2bae 100644
--- a/t/helper/test-bloom.c
+++ b/t/helper/test-bloom.c
@@ -27,7 +27,7 @@ static void print_bloom_filter(struct bloom_filter *filter) {
}
printf("Filter_Length:%d\n", (int)filter->len);
printf("Filter_Data:");
- for (i = 0; i < filter->len; i++){
+ for (i = 0; i < filter->len; i++) {
printf("%02x|", filter->data[i]);
}
printf("\n");
@@ -50,13 +50,13 @@ int cmd__bloom(int argc, const char **argv)
printf("Murmur3 Hash with seed=0:0x%08x\n", hashed);
}
- if (!strcmp(argv[1], "generate_filter")) {
+ if (!strcmp(argv[1], "generate_filter")) {
struct bloom_filter filter;
int i = 2;
filter.len = (settings.bits_per_entry + BITS_PER_WORD - 1) / BITS_PER_WORD;
filter.data = xcalloc(filter.len, sizeof(unsigned char));
- if (!argv[2]){
+ if (!argv[2]) {
die("at least one input string expected");
}
@@ -68,7 +68,7 @@ int cmd__bloom(int argc, const char **argv)
print_bloom_filter(&filter);
}
- if (!strcmp(argv[1], "get_filter_for_commit")) {
+ if (!strcmp(argv[1], "get_filter_for_commit")) {
struct object_id oid;
const char *end;
if (parse_oid_hex(argv[2], &oid, &end))
@@ -78,4 +78,4 @@ int cmd__bloom(int argc, const char **argv)
}
return 0;
-} \ No newline at end of file
+}