summaryrefslogtreecommitdiff
path: root/src/libstddjb/genwrite_put_stralloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/genwrite_put_stralloc.c')
-rw-r--r--src/libstddjb/genwrite_put_stralloc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libstddjb/genwrite_put_stralloc.c b/src/libstddjb/genwrite_put_stralloc.c
index 14583fb..a5d402f 100644
--- a/src/libstddjb/genwrite_put_stralloc.c
+++ b/src/libstddjb/genwrite_put_stralloc.c
@@ -1,10 +1,9 @@
/* ISC license. */
-#include <sys/types.h>
#include <skalibs/stralloc.h>
#include <skalibs/genwrite.h>
ssize_t genwrite_put_stralloc (void *target, char const *s, size_t len)
{
- return stralloc_catb((stralloc *)target, s, len) ? (ssize_t)len : -1 ;
+ return stralloc_catb((stralloc *)target, s, len) ? len : -1 ;
}