X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib/blobdiff_plain/e63124bc579bfd97cfe2f620ddd84df9f20477d8..31d0247cc58abc0b0720aa7e9972011c5a66995c:/struct/buf-putf.c?ds=inline diff --git a/struct/buf-putf.c b/struct/buf-putf.c index 5b465f2..3b4261d 100644 --- a/struct/buf-putf.c +++ b/struct/buf-putf.c @@ -27,6 +27,8 @@ /*----- Header files ------------------------------------------------------*/ +#include "config.h" + #include #include #include @@ -72,9 +74,6 @@ static int nputf(void *out, size_t maxsz, const char *p, ...) va_end(ap); b->p += n; return (n); } -static int putbuf(void *out, const char *p, size_t sz) - { buf *b = out; b->p += sz; return (0); } - const struct gprintf_ops buf_printops = { putch, putm, nputf };