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/sanitize_read.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libstddjb/sanitize_read.c') diff --git a/src/libstddjb/sanitize_read.c b/src/libstddjb/sanitize_read.c index bd8eee3..136f7ee 100644 --- a/src/libstddjb/sanitize_read.c +++ b/src/libstddjb/sanitize_read.c @@ -1,10 +1,11 @@ /* ISC license. */ +#include #include #include #include -int sanitize_read (int r) +ssize_t sanitize_read (ssize_t r) { return r == -1 ? error_isagain(errno) ? (errno = 0, 0) : -1 : !r ? (errno = EPIPE, -1) : r ; -- cgit v1.2.3