diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-03-13 22:43:45 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-03-13 22:43:45 +0000 |
commit | 33dfbbeaec4a49e110f51f5d088015f1a8fb9075 (patch) | |
tree | 7f2e2359d05b63b1b0b59b61ae3fc154050fc486 /src/libstddjb/genwrite_put_stralloc.c | |
parent | e450f6efc39e55e32264d2daded6c757af0f7527 (diff) | |
download | skalibs-33dfbbeaec4a49e110f51f5d088015f1a8fb9075.tar.xz |
More superflous headers cleanup and tiny fixes
Diffstat (limited to 'src/libstddjb/genwrite_put_stralloc.c')
-rw-r--r-- | src/libstddjb/genwrite_put_stralloc.c | 3 |
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 ; } |