diff options
Diffstat (limited to 'src/libstddjb/buffer_getallnf.c')
-rw-r--r-- | src/libstddjb/buffer_getallnf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libstddjb/buffer_getallnf.c b/src/libstddjb/buffer_getallnf.c index be46196..9ad0036 100644 --- a/src/libstddjb/buffer_getallnf.c +++ b/src/libstddjb/buffer_getallnf.c @@ -1,11 +1,12 @@ /* ISC license. */ +#include <sys/types.h> #include <errno.h> #include <skalibs/buffer.h> -int buffer_getallnofill (buffer *b, char *s, unsigned int len) +int buffer_getallnofill (buffer *b, char *s, size_t len) { - register unsigned int r = buffer_getnofill(b, s, len) ; + size_t r = buffer_getnofill(b, s, len) ; if (r < len) { buffer_unget(b, r) ; |