X-Git-Url: https://git.distorted.org.uk/~mdw/mLib/blobdiff_plain/db2bf4111cde36048ac66bbac58547d105bc7e80..67b5031ec6d160b5cae425466a34d1be3b211dd4:/struct/buf-putf.c 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 };