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>
This commit is contained in:

committed by
Taylor Blau

parent
ef8ce8f3d4
commit
409f04995e
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user