From: Daniel Stenberg Date: Mon, 21 Nov 2016 06:51:42 +0000 (+0100) Subject: rand: pass in number of randoms as an unsigned argument X-Git-Tag: curl-7_52_0~102 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f18f7bf934233146b18d087658224d734c6d0791;p=thirdparty%2Fcurl.git rand: pass in number of randoms as an unsigned argument --- diff --git a/lib/rand.c b/lib/rand.c index 342796513f..0e716a77c3 100644 --- a/lib/rand.c +++ b/lib/rand.c @@ -113,10 +113,11 @@ static CURLcode randit(struct Curl_easy *data, unsigned int *rnd) * */ -CURLcode Curl_rand(struct Curl_easy *data, unsigned int *rndptr, int num) +CURLcode Curl_rand(struct Curl_easy *data, unsigned int *rndptr, + unsigned int num) { CURLcode result = CURLE_BAD_FUNCTION_ARGUMENT; - int i; + unsigned int i; assert(num > 0); diff --git a/lib/rand.h b/lib/rand.h index 36f89b526c..0f8986120e 100644 --- a/lib/rand.h +++ b/lib/rand.h @@ -37,6 +37,7 @@ * easy handle! * */ -CURLcode Curl_rand(struct Curl_easy *data, unsigned int *rnd, int num); +CURLcode Curl_rand(struct Curl_easy *data, unsigned int *rnd, + unsigned int num); #endif /* HEADER_CURL_RAND_H */