aboutsummaryrefslogtreecommitdiff
path: root/reftable/block.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-10-17 06:53:45 +0200
committerTaylor Blau <me@ttaylorr.com>2024-10-17 16:59:55 -0400
commit409f04995e6ede838576fb795cf45dc6f10ab508 (patch)
tree89a13d5b9d4bdc63b029b3047ccb124bb85de9fb /reftable/block.c
parentef8ce8f3d4344fd3af049c17eeba5cd20d98b69f (diff)
downloadgit-409f04995e6ede838576fb795cf45dc6f10ab508.tar.xz
reftable: stop using `strbuf_addbuf()`
We're about to introduce our own `reftable_buf` type to replace `strbuf`. Get rid of the seldomly-used `strbuf_addbuf()` function such that we have to reimplement one less function. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Taylor Blau <me@ttaylorr.com>
Diffstat (limited to 'reftable/block.c')
-rw-r--r--reftable/block.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/reftable/block.c b/reftable/block.c
index 8d41a2f99e..cd4180eac7 100644
--- a/reftable/block.c
+++ b/reftable/block.c
@@ -60,7 +60,7 @@ static int block_writer_register_restart(struct block_writer *w, int n,
w->next += n;
strbuf_reset(&w->last_key);
- strbuf_addbuf(&w->last_key, key);
+ strbuf_add(&w->last_key, key->buf, key->len);
w->entries++;
return 0;
}