]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
test: Add proper prototypes for main() function
authorGuillem Jover <guillem@hadrons.org>
Fri, 19 Feb 2021 05:49:53 +0000 (06:49 +0100)
committerGuillem Jover <guillem@hadrons.org>
Sun, 28 Feb 2021 04:30:31 +0000 (05:30 +0100)
Warned-by: gcc
test/bzero.c
test/closefrom.c
test/endian.c
test/fpurge.c
test/md5.c
test/overlay.c

index 227b163402c08bc184ff691be5ee2a31f8e3a45d..6c4ec30c35fba0e83d9becfcc27f52d598e31914 100644 (file)
@@ -28,7 +28,7 @@
 #include <string.h>
 
 int
-main()
+main(int argc, char *argv[])
 {
        unsigned char array[40];
        size_t i;
index b5e7e929b723fae6d0b697f7c90931ed3a8d023b..160e6b1ede736877d3264e0cc2bf5bc234f72d18 100644 (file)
@@ -31,7 +31,7 @@
 #include <stdio.h>
 
 int
-main()
+main(int argc, char *argv[])
 {
        int i;
        int fd;
index 349675f86ceba046f73a10a667d279e0b2789def..06e5fcc3a4534318fb1ddc5807ff32e5ea46e415 100644 (file)
@@ -30,7 +30,7 @@
 #include <string.h>
 
 int
-main()
+main(int argc, char *argv[])
 {
        unsigned char decstream[] = {
                0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77,
index 03f107fb15ac579687fd478c660ecb2454b6ad43..a99cff70ba89aa23a89235c189d2bc6cede34d5f 100644 (file)
@@ -27,7 +27,7 @@
 #include <stdio.h>
 
 int
-main()
+main(int argc, char *argv[])
 {
        static FILE fp_bad;
        FILE *fp;
index bc2ed7d920c76355969a544555eae33cf78b72c3..b1b4af55d88af1ae3d9589900fd3747466230095 100644 (file)
@@ -37,7 +37,7 @@ test_md5(const char *digest, const char *string)
 }
 
 int
-main()
+main(int argc, char *argv[])
 {
        test_md5("d41d8cd98f00b204e9800998ecf8427e", "");
        test_md5("900150983cd24fb0d6963f7d28e17f72", "abc");
index 0ec6d7c3bc73ccdd3ac909eafeaddd324a881861..d82f14ec0e1ac9876e775abfc197c2d1bd6fd377 100644 (file)
@@ -45,7 +45,7 @@
 #include <unistd.h>
 
 int
-main()
+main(int argc, char *argv[])
 {
        /* Test that we do not get partial definitions. */
        fflush(stdout);