diff options
author | Kurt Roeckx <kurt@roeckx.be> | 2018-05-09 17:09:50 +0200 |
---|---|---|
committer | Kurt Roeckx <kurt@roeckx.be> | 2018-05-11 14:37:48 +0200 |
commit | 3cb7c5cfef25463bd197b0c12ca7966f525ebf73 (patch) | |
tree | e48a48cfd6aa0a3492cf6aec22de0e70f7284577 /test/rdrand_sanitytest.c | |
parent | d4a8ba77a4004b40890c4a9700ba959fd26af170 (diff) | |
download | openssl-3cb7c5cfef25463bd197b0c12ca7966f525ebf73.tar.gz |
Use void in all function definitions that do not take any arguments
Reviewed-by: Rich Salz <rsalz@openssl.org>
GH: #6208
Diffstat (limited to 'test/rdrand_sanitytest.c')
-rw-r--r-- | test/rdrand_sanitytest.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/test/rdrand_sanitytest.c b/test/rdrand_sanitytest.c index 1844d7224c..0e67b377bd 100644 --- a/test/rdrand_sanitytest.c +++ b/test/rdrand_sanitytest.c @@ -20,7 +20,7 @@ size_t OPENSSL_ia32_rdrand_bytes(unsigned char *buf, size_t len); size_t OPENSSL_ia32_rdseed_bytes(unsigned char *buf, size_t len); -void OPENSSL_cpuid_setup(); +void OPENSSL_cpuid_setup(void); extern unsigned int OPENSSL_ia32cap_P[4]; @@ -81,12 +81,12 @@ end: return testresult; } -static int sanity_check_rdrand_bytes() +static int sanity_check_rdrand_bytes(void) { return sanity_check_bytes(OPENSSL_ia32_rdrand_bytes, 1000, 0, 10, 10); } -static int sanity_check_rdseed_bytes() +static int sanity_check_rdseed_bytes(void) { /*- * RDSEED may take many retries to succeed; note that this is effectively @@ -97,7 +97,8 @@ static int sanity_check_rdseed_bytes() return sanity_check_bytes(OPENSSL_ia32_rdseed_bytes, 1000, 1, 10000, 10); } -int setup_tests() { +int setup_tests(void) +{ OPENSSL_cpuid_setup(); int have_rdseed = (OPENSSL_ia32cap_P[2] & (1 << 18)) != 0; @@ -117,7 +118,7 @@ int setup_tests() { #else -int setup_tests() +int setup_tests(void) { return 1; } |