diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-aes-key-wrap.c | 2 | ||||
-rw-r--r-- | tests/test-ecdsa.c | 2 | ||||
-rw-r--r-- | tests/test-hash.c | 2 | ||||
-rw-r--r-- | tests/test-pbkdf2.c | 2 | ||||
-rw-r--r-- | tests/test-rsa.c | 4 |
5 files changed, 6 insertions, 6 deletions
diff --git a/tests/test-aes-key-wrap.c b/tests/test-aes-key-wrap.c index 5ecd46d..aa894cc 100644 --- a/tests/test-aes-key-wrap.c +++ b/tests/test-aes-key-wrap.c @@ -163,7 +163,7 @@ static int run_test(hal_core_t *core, return ok1 && ok2; } -int main (int argc, char *argv[]) +int main(void) { int failures = 0; diff --git a/tests/test-ecdsa.c b/tests/test-ecdsa.c index da2b367..fe04a87 100644 --- a/tests/test-ecdsa.c +++ b/tests/test-ecdsa.c @@ -359,7 +359,7 @@ static void show_core(const hal_core_t *core, const char *whinge) printf("%s core not present\n", whinge); } -int main(int argc, char *argv[]) +int main(void) { const hal_core_t *sha256_core = hal_core_find(SHA256_NAME, NULL); const hal_core_t *sha512_core = hal_core_find(SHA512_NAME, NULL); diff --git a/tests/test-hash.c b/tests/test-hash.c index 4e78243..20bd446 100644 --- a/tests/test-hash.c +++ b/tests/test-hash.c @@ -652,7 +652,7 @@ static void show_core(hal_core_t *core, const char *whinge) printf("%s core not present\n", whinge); } -int main (int argc, char *argv[]) +int main(void) { hal_core_t * const sha1_core = hal_core_find(SHA1_NAME, NULL); hal_core_t * const sha256_core = hal_core_find(SHA256_NAME, NULL); diff --git a/tests/test-pbkdf2.c b/tests/test-pbkdf2.c index f3072a7..603a833 100644 --- a/tests/test-pbkdf2.c +++ b/tests/test-pbkdf2.c @@ -196,7 +196,7 @@ static int _test_pbkdf2(hal_core_t *core, pbkdf2_tc_##_n_##_DK, sizeof(pbkdf2_tc_##_n_##_DK), \ pbkdf2_tc_##_n_##_count, #_n_) -int main (int argc, char *argv[]) +int main(void) { hal_core_t *core = hal_core_find(SHA1_NAME, NULL); int ok = 1; diff --git a/tests/test-rsa.c b/tests/test-rsa.c index 57037c0..f4e7a8f 100644 --- a/tests/test-rsa.c +++ b/tests/test-rsa.c @@ -296,7 +296,7 @@ static int test_rsa(hal_core_t *core, const rsa_tc_t * const tc) return ok; } -int main(int argc, char *argv[]) +int main(void) { hal_core_t *core = hal_core_find(MODEXPS6_NAME, NULL); if (core == NULL) @@ -314,7 +314,7 @@ int main(int argc, char *argv[]) /* Normal test */ - for (int i = 0; i < (sizeof(rsa_tc)/sizeof(*rsa_tc)); i++) + for (size_t i = 0; i < (sizeof(rsa_tc)/sizeof(*rsa_tc)); i++) if (!test_rsa(core, &rsa_tc[i])) return 1; |