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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libstddjb/buffer_put.c b/src/libstddjb/buffer_put.c
index 5e1fb89..24385d3 100644
--- a/src/libstddjb/buffer_put.c
+++ b/src/libstddjb/buffer_put.c
@@ -1,11 +1,10 @@
/* ISC license. */
-#include <sys/types.h>
#include <skalibs/buffer.h>
ssize_t buffer_put (buffer *b, char const *s, size_t len)
{
size_t w = 0 ;
if (!buffer_putall(b, s, len, &w)) return -1 ;
- return (ssize_t)w ;
+ return w ;
}