diff options
| author | Patrick Steinhardt <ps@pks.im> | 2024-04-08 14:16:31 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-04-15 10:36:09 -0700 |
| commit | 42c7bdc36d0aacfb7c0910126257a2009de0b1ca (patch) | |
| tree | 1c4c6208e21de7da04e8474ead4c68498d507ce0 /reftable/block_test.c | |
| parent | 3122d44025e29571aecda02fe3699f240246f3b2 (diff) | |
| download | git-42c7bdc36d0aacfb7c0910126257a2009de0b1ca.tar.xz | |
reftable/block: merge `block_iter_seek()` and `block_reader_seek()`
The function `block_iter_seek()` is merely a simple wrapper around
`block_reader_seek()`. Merge those two functions into a new function
`block_iter_seek_key()` that more clearly says what it is actually
doing.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'reftable/block_test.c')
| -rw-r--r-- | reftable/block_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/reftable/block_test.c b/reftable/block_test.c index a719be7c50..26a9cfbc83 100644 --- a/reftable/block_test.c +++ b/reftable/block_test.c @@ -89,7 +89,7 @@ static void test_block_read_write(void) strbuf_reset(&want); strbuf_addstr(&want, names[i]); - n = block_reader_seek(&br, &it, &want); + n = block_iter_seek_key(&it, &br, &want); EXPECT(n == 0); n = block_iter_next(&it, &rec); @@ -98,7 +98,7 @@ static void test_block_read_write(void) EXPECT_STREQ(names[i], rec.u.ref.refname); want.len--; - n = block_reader_seek(&br, &it, &want); + n = block_iter_seek_key(&it, &br, &want); EXPECT(n == 0); n = block_iter_next(&it, &rec); |
