diff options
| author | Lidong Yan <yldhome2d2@gmail.com> | 2025-07-12 17:35:14 +0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-07-14 10:03:02 -0700 |
| commit | b187353ed2b92745a903d321eaafac342a5df8d4 (patch) | |
| tree | 90ccddbde49af9c67eb1c2c9e0d79cac92ffcfe4 /t/helper | |
| parent | bloom: add test helper to return murmur3 hash (diff) | |
| download | git-b187353ed2b92745a903d321eaafac342a5df8d4.tar.gz git-b187353ed2b92745a903d321eaafac342a5df8d4.zip | |
bloom: rename function operates on bloom_key
git code style requires that functions operating on a struct S
should be named in the form S_verb. However, the functions operating
on struct bloom_key do not follow this convention. Therefore,
fill_bloom_key() and clear_bloom_key() are renamed to bloom_key_fill()
and bloom_key_clear(), respectively.
Signed-off-by: Lidong Yan <502024330056@smail.nju.edu.cn>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper')
| -rw-r--r-- | t/helper/test-bloom.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/helper/test-bloom.c b/t/helper/test-bloom.c index 6a24b6e0a6..3283544bd3 100644 --- a/t/helper/test-bloom.c +++ b/t/helper/test-bloom.c @@ -12,13 +12,13 @@ static struct bloom_filter_settings settings = DEFAULT_BLOOM_FILTER_SETTINGS; static void add_string_to_filter(const char *data, struct bloom_filter *filter) { struct bloom_key key; - fill_bloom_key(data, strlen(data), &key, &settings); + bloom_key_fill(&key, data, strlen(data), &settings); printf("Hashes:"); for (size_t i = 0; i < settings.num_hashes; i++) printf("0x%08x|", key.hashes[i]); printf("\n"); add_key_to_filter(&key, filter, &settings); - clear_bloom_key(&key); + bloom_key_clear(&key); } static void print_bloom_filter(struct bloom_filter *filter) { |
