diff options
Diffstat (limited to 'src/lib/libssl/src/apps/rand.c')
-rw-r--r-- | src/lib/libssl/src/apps/rand.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/src/apps/rand.c b/src/lib/libssl/src/apps/rand.c index 63724bc730..c3b26c466d 100644 --- a/src/lib/libssl/src/apps/rand.c +++ b/src/lib/libssl/src/apps/rand.c | |||
@@ -205,7 +205,7 @@ int MAIN(int argc, char **argv) | |||
205 | int chunk; | 205 | int chunk; |
206 | 206 | ||
207 | chunk = num; | 207 | chunk = num; |
208 | if (chunk > sizeof buf) | 208 | if (chunk > (int)sizeof(buf)) |
209 | chunk = sizeof buf; | 209 | chunk = sizeof buf; |
210 | r = RAND_bytes(buf, chunk); | 210 | r = RAND_bytes(buf, chunk); |
211 | if (r <= 0) | 211 | if (r <= 0) |
@@ -213,7 +213,7 @@ int MAIN(int argc, char **argv) | |||
213 | BIO_write(out, buf, chunk); | 213 | BIO_write(out, buf, chunk); |
214 | num -= chunk; | 214 | num -= chunk; |
215 | } | 215 | } |
216 | BIO_flush(out); | 216 | (void)BIO_flush(out); |
217 | 217 | ||
218 | app_RAND_write_file(NULL, bio_err); | 218 | app_RAND_write_file(NULL, bio_err); |
219 | ret = 0; | 219 | ret = 0; |