Commit 6cedc1594f34529a803a25cbcb773cbf5a6fc891

Guillem Jover 2021-02-19T07:14:15

Fix main() function prototype Warned-by: gcc

diff --git a/test/md2.c b/test/md2.c
index 3ed7a35..6cf2977 100644
--- a/test/md2.c
+++ b/test/md2.c
@@ -33,7 +33,7 @@
 DEF_TEST_DIGEST(MD2, MD2)
 
 int
-main()
+main(int argc, char *argv[])
 {
 	test_MD2("8350e5a3e24c153df2275c9f80692773", "");
 	test_MD2("da853b0d3f88d99b30283a69e6ded6bb", "abc");
diff --git a/test/md4.c b/test/md4.c
index f3b1fe3..089a8ef 100644
--- a/test/md4.c
+++ b/test/md4.c
@@ -33,7 +33,7 @@
 DEF_TEST_DIGEST(MD4, MD4)
 
 int
-main()
+main(int argc, char *argv[])
 {
 	test_MD4("31d6cfe0d16ae931b73c59d7e0c089c0", "");
 	test_MD4("a448017aaf21d8525fc10ae87aa6729d", "abc");
diff --git a/test/md5.c b/test/md5.c
index c635c77..7e61729 100644
--- a/test/md5.c
+++ b/test/md5.c
@@ -59,7 +59,7 @@ test_MD5_all(const char *hash_str_ref, const char *data)
 }
 
 int
-main()
+main(int argc, char *argv[])
 {
 	test_MD5_all("d41d8cd98f00b204e9800998ecf8427e", "");
 	test_MD5_all("900150983cd24fb0d6963f7d28e17f72", "abc");
diff --git a/test/rmd160.c b/test/rmd160.c
index cd27800..5f1457b 100644
--- a/test/rmd160.c
+++ b/test/rmd160.c
@@ -33,7 +33,7 @@
 DEF_TEST_DIGEST(RMD160, RMD160)
 
 int
-main()
+main(int argc, char *argv[])
 {
 	test_RMD160("9c1185a5c5e9fc54612808977ee8f548b2258d31", "");
 	test_RMD160("8eb208f7e05d987a9b044a8e98c6b087f15a0bfc", "abc");
diff --git a/test/sha1.c b/test/sha1.c
index 7145667..aa59902 100644
--- a/test/sha1.c
+++ b/test/sha1.c
@@ -33,7 +33,7 @@
 DEF_TEST_DIGEST(SHA1, SHA1)
 
 int
-main()
+main(int argc, char *argv[])
 {
 	test_SHA1("da39a3ee5e6b4b0d3255bfef95601890afd80709", "");
 	test_SHA1("a9993e364706816aba3e25717850c26c9cd0d89d", "abc");
diff --git a/test/sha2.c b/test/sha2.c
index c8dd346..a38079c 100644
--- a/test/sha2.c
+++ b/test/sha2.c
@@ -35,7 +35,7 @@ DEF_TEST_DIGEST(SHA384, SHA2)
 DEF_TEST_DIGEST(SHA512, SHA2)
 
 int
-main()
+main(int argc, char *argv[])
 {
 	test_SHA256("e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
 	            "");