diff options
author | Daniel Stenberg <daniel@haxx.se> | 2016-11-21 07:51:42 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2016-11-21 07:51:42 +0100 |
commit | f18f7bf934233146b18d087658224d734c6d0791 (patch) | |
tree | 034d98addf5e8f928687da630cb9522ed34e27fc /lib/rand.c | |
parent | 8626632f3e1a3f8edb48187f73b7633334bf09e5 (diff) | |
download | curl-f18f7bf934233146b18d087658224d734c6d0791.tar.gz |
rand: pass in number of randoms as an unsigned argument
Diffstat (limited to 'lib/rand.c')
-rw-r--r-- | lib/rand.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/rand.c b/lib/rand.c index 342796513..0e716a77c 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); |