X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib/blobdiff_plain/adec5584e13c63662fda18915280ec026063b29d..98ff9295493ed2b990f30768e11b18b6bc65eaa4:/struct/dstr.c?ds=inline diff --git a/struct/dstr.c b/struct/dstr.c index eee34cc..52f33f5 100644 --- a/struct/dstr.c +++ b/struct/dstr.c @@ -28,7 +28,6 @@ /*----- Header files ------------------------------------------------------*/ #include -#include #include #include "alloc.h" @@ -92,7 +91,10 @@ void dstr_reset(dstr *d) { DRESET(d); } */ void dstr_ensure(dstr *d, size_t sz) - { GROWBUF_EXTEND(d->a, d->buf, d->sz, d->len + sz, DSTR_INITSZ, 1); } +{ + GROWBUF_EXTEND(size_t, d->a, d->buf, d->sz, d->len + sz, + DSTR_INITSZ, 1); +} /* --- @dstr_putc@ --- * *