X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=apps%2Frand.c;h=c3b26c466d9e91847ade09a20c574531adc937a8;hb=761f3b403b45d3260b5c7cdfce45a57691c27c60;hp=63724bc730250236200d08d06b95ab124863acac;hpb=0b13e9f055d3f7be066dc2e89fc9f9822b12eca7;p=oweals%2Fopenssl.git diff --git a/apps/rand.c b/apps/rand.c index 63724bc730..c3b26c466d 100644 --- a/apps/rand.c +++ b/apps/rand.c @@ -205,7 +205,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) @@ -213,7 +213,7 @@ int MAIN(int argc, char **argv) BIO_write(out, buf, chunk); num -= chunk; } - BIO_flush(out); + (void)BIO_flush(out); app_RAND_write_file(NULL, bio_err); ret = 0;