summaryrefslogtreecommitdiffstats
path: root/reftable/writer.h
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 22:59:56 +0200
commitbe4c070a3c9e7c9d6836c724929ff8a365361e1a (patch)
tree03cec9016c899456a020c06e98239963a2958238 /reftable/writer.h
parentreftable/basics: provide new `reftable_buf` interface (diff)
downloadgit-be4c070a3c9e7c9d6836c724929ff8a365361e1a.tar.xz
git-be4c070a3c9e7c9d6836c724929ff8a365361e1a.zip
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 'reftable/writer.h')
-rw-r--r--reftable/writer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/reftable/writer.h b/reftable/writer.h
index 8d0df9cc52..e8a6fbb785 100644
--- a/reftable/writer.h
+++ b/reftable/writer.h
@@ -19,7 +19,7 @@ struct reftable_writer {
int (*flush)(void *);
void *write_arg;
int pending_padding;
- struct strbuf last_key;
+ struct reftable_buf last_key;
/* offset of next block to write. */
uint64_t next;