summaryrefslogtreecommitdiff
path: root/src/libstddjb/buffer_putall.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/buffer_putall.c')
-rw-r--r--src/libstddjb/buffer_putall.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstddjb/buffer_putall.c b/src/libstddjb/buffer_putall.c
index 16facc2..f65b73e 100644
--- a/src/libstddjb/buffer_putall.c
+++ b/src/libstddjb/buffer_putall.c
@@ -1,9 +1,10 @@
/* ISC license. */
+#include <sys/types.h>
#include <errno.h>
#include <skalibs/buffer.h>
-int buffer_putall (buffer *b, char const *s, unsigned int len, unsigned int *written)
+int buffer_putall (buffer *b, char const *s, size_t len, size_t *written)
{
if (*written > len) return (errno = EINVAL, 0) ;
for (;;)