diff options
| author | Patrick Steinhardt <ps@pks.im> | 2024-10-17 06:53:56 +0200 |
|---|---|---|
| committer | Taylor Blau <me@ttaylorr.com> | 2024-10-17 16:59:56 -0400 |
| commit | be4c070a3c9e7c9d6836c724929ff8a365361e1a (patch) | |
| tree | 03cec9016c899456a020c06e98239963a2958238 /reftable/basics.c | |
| parent | 81eddda540eae43ef481b629d7f4d8023ea40c57 (diff) | |
| download | git-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 'reftable/basics.c')
| -rw-r--r-- | reftable/basics.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/reftable/basics.c b/reftable/basics.c index 65ad761da0..bc4fcc9144 100644 --- a/reftable/basics.c +++ b/reftable/basics.c @@ -260,7 +260,7 @@ int names_equal(const char **a, const char **b) return a[i] == b[i]; } -int common_prefix_size(struct strbuf *a, struct strbuf *b) +int common_prefix_size(struct reftable_buf *a, struct reftable_buf *b) { int p = 0; for (; p < a->len && p < b->len; p++) { |
