diff options
Diffstat (limited to 'lib/libssl/src/apps/rand.c')
-rw-r--r-- | lib/libssl/src/apps/rand.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libssl/src/apps/rand.c b/lib/libssl/src/apps/rand.c index e23e84af823..fa35505c187 100644 --- a/lib/libssl/src/apps/rand.c +++ b/lib/libssl/src/apps/rand.c @@ -218,7 +218,7 @@ int MAIN(int argc, char **argv) int chunk; chunk = num; - if (chunk > sizeof buf) + if (chunk > (int)sizeof(buf)) chunk = sizeof buf; r = RAND_bytes(buf, chunk); if (r <= 0) @@ -232,7 +232,7 @@ int MAIN(int argc, char **argv) } num -= chunk; } - BIO_flush(out); + (void)BIO_flush(out); app_RAND_write_file(NULL, bio_err); ret = 0; |