projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix more unused value warnings.
[oweals/openssl.git]
/
apps
/
rand.c
diff --git
a/apps/rand.c
b/apps/rand.c
index 63724bc730250236200d08d06b95ab124863acac..c3b26c466d9e91847ade09a20c574531adc937a8 100644
(file)
--- a/
apps/rand.c
+++ b/
apps/rand.c
@@
-205,7
+205,7
@@
int MAIN(int argc, char **argv)
int chunk;
chunk = num;
int chunk;
chunk = num;
- if (chunk >
sizeof buf
)
+ if (chunk >
(int)sizeof(buf)
)
chunk = sizeof buf;
r = RAND_bytes(buf, chunk);
if (r <= 0)
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_write(out, buf, chunk);
num -= chunk;
}
- BIO_flush(out);
+
(void)
BIO_flush(out);
app_RAND_write_file(NULL, bio_err);
ret = 0;
app_RAND_write_file(NULL, bio_err);
ret = 0;