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/stralloc_ready_tuned.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/libstddjb/stralloc_ready_tuned.c') diff --git a/src/libstddjb/stralloc_ready_tuned.c b/src/libstddjb/stralloc_ready_tuned.c index 04e1a41..53a47cd 100644 --- a/src/libstddjb/stralloc_ready_tuned.c +++ b/src/libstddjb/stralloc_ready_tuned.c @@ -1,12 +1,13 @@ /* ISC license. */ +#include #include #include #include -int stralloc_ready_tuned (stralloc *sa, unsigned int n, unsigned int base, unsigned int a, unsigned int b) +int stralloc_ready_tuned (stralloc *sa, size_t n, size_t base, size_t a, size_t b) { - register unsigned int t ; + register size_t t ; if (!b) return (errno = EINVAL, 0) ; t = n + base + a * n / b ; if (t < n) return (errno = ERANGE, 0) ; -- cgit v1.2.3