summaryrefslogtreecommitdiff
path: root/src/libstddjb/buffer_put.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/buffer_put.c')
-rw-r--r--src/libstddjb/buffer_put.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libstddjb/buffer_put.c b/src/libstddjb/buffer_put.c
index 56baaa7..5e1fb89 100644
--- a/src/libstddjb/buffer_put.c
+++ b/src/libstddjb/buffer_put.c
@@ -1,10 +1,11 @@
/* ISC license. */
+#include <sys/types.h>
#include <skalibs/buffer.h>
-int buffer_put (buffer *b, char const *s, unsigned int len)
+ssize_t buffer_put (buffer *b, char const *s, size_t len)
{
- unsigned int w = 0 ;
+ size_t w = 0 ;
if (!buffer_putall(b, s, len, &w)) return -1 ;
- return (int)w ;
+ return (ssize_t)w ;
}