aboutsummaryrefslogtreecommitdiffstats
path: root/t/unit-tests/lib-reftable.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-10-17 06:53:56 +0200
committerTaylor Blau <me@ttaylorr.com>2024-10-17 16:59:56 -0400
commitbe4c070a3c9e7c9d6836c724929ff8a365361e1a (patch)
tree03cec9016c899456a020c06e98239963a2958238 /t/unit-tests/lib-reftable.c
parent81eddda540eae43ef481b629d7f4d8023ea40c57 (diff)
downloadgit-be4c070a3c9e7c9d6836c724929ff8a365361e1a.tar.gz
reftable: convert from `strbuf` to `reftable_buf`
Convert the reftable library to use the `reftable_buf` interface instead of the `strbuf` interface. This is mostly a mechanical change via sed(1) with some manual fixes where functions for `strbuf` and `reftable_buf` differ. The converted code does not yet handle allocation failures. This will be handled in subsequent commits. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Taylor Blau <me@ttaylorr.com>
Diffstat (limited to 't/unit-tests/lib-reftable.c')
-rw-r--r--t/unit-tests/lib-reftable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/unit-tests/lib-reftable.c b/t/unit-tests/lib-reftable.c
index 54c26c43e7..2ddf480588 100644
--- a/t/unit-tests/lib-reftable.c
+++ b/t/unit-tests/lib-reftable.c
@@ -19,7 +19,7 @@ static int strbuf_writer_flush(void *arg UNUSED)
return 0;
}
-struct reftable_writer *t_reftable_strbuf_writer(struct strbuf *buf,
+struct reftable_writer *t_reftable_strbuf_writer(struct reftable_buf *buf,
struct reftable_write_options *opts)
{
struct reftable_writer *writer;
@@ -29,7 +29,7 @@ struct reftable_writer *t_reftable_strbuf_writer(struct strbuf *buf,
return writer;
}
-void t_reftable_write_to_buf(struct strbuf *buf,
+void t_reftable_write_to_buf(struct reftable_buf *buf,
struct reftable_ref_record *refs,
size_t nrefs,
struct reftable_log_record *logs,