From fdffefb8032922ce7ffe4c00816072a8ff2148fc Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 17 Feb 2017 22:30:53 +0000 Subject: More types changes New disize Add size_t to the autotypes list Delete redundant and replace-libc files dev_t/ino_t pass Big size_t pass More things missing, still not operational yet --- src/libstddjb/cbuffer_wseek.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/libstddjb/cbuffer_wseek.c') diff --git a/src/libstddjb/cbuffer_wseek.c b/src/libstddjb/cbuffer_wseek.c index 6b90ab6..3d44d44 100644 --- a/src/libstddjb/cbuffer_wseek.c +++ b/src/libstddjb/cbuffer_wseek.c @@ -1,10 +1,11 @@ /* ISC license. */ +#include #include -unsigned int cbuffer_wseek (cbuffer_t *b, unsigned int len) +size_t cbuffer_wseek (cbuffer_t *b, size_t len) { - register unsigned int max = cbuffer_available(b) ; + size_t max = cbuffer_available(b) ; if (len > max) len = max ; return cbuffer_WSEEK(b, len) ; } -- cgit v1.2.3