From a896ca2a8c617e5e00ffd5fc9e69331ad754e5b3 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 15 Feb 2017 17:40:40 +0000 Subject: add arc4random_addrandom sysdep; next batch of types changes. The library isn't supposed to be functional yet: there are still a lot of type mismatches. --- src/libstddjb/genwrite_put_stralloc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/libstddjb/genwrite_put_stralloc.c') diff --git a/src/libstddjb/genwrite_put_stralloc.c b/src/libstddjb/genwrite_put_stralloc.c index 2a8a8e8..6f1e2b7 100644 --- a/src/libstddjb/genwrite_put_stralloc.c +++ b/src/libstddjb/genwrite_put_stralloc.c @@ -1,10 +1,11 @@ /* ISC license. */ +#include #include #include -int genwrite_put_stralloc (void *target, char const *s, unsigned int len) +ssize_t genwrite_put_stralloc (void *target, char const *s, size_t len) { register stralloc *sa = target ; - return stralloc_catb(sa, s, len) ? (int)len : -1 ; + return stralloc_catb(sa, s, len) ? (ssize_t)len : -1 ; } -- cgit v1.2.3