aboutsummaryrefslogtreecommitdiff
path: root/lib/abuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/abuf.c')
-rw-r--r--lib/abuf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/abuf.c b/lib/abuf.c
index bd270467dd..ce2cff53dc 100644
--- a/lib/abuf.c
+++ b/lib/abuf.c
@@ -82,6 +82,11 @@ bool abuf_realloc(struct abuf *abuf, size_t new_size)
}
}
+bool abuf_realloc_inc(struct abuf *abuf, size_t inc)
+{
+ return abuf_realloc(abuf, abuf->size + inc);
+}
+
void *abuf_uninit_move(struct abuf *abuf, size_t *sizep)
{
void *ptr;