no-asm didn't exclude Camellia assembler.
[openssl.git] / apps / rand.c
index 63724bc730250236200d08d06b95ab124863acac..c3b26c466d9e91847ade09a20c574531adc937a8 100644 (file)
@@ -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;