diff options
author | Guillem Jover <guillem@hadrons.org> | 2021-02-19 06:49:53 +0100 |
---|---|---|
committer | Guillem Jover <guillem@hadrons.org> | 2021-02-28 05:30:31 +0100 |
commit | 3c305f2873580322823af53d9b9202b8ce658c32 (patch) | |
tree | 8c06747aeb194b15d501a342e86cdcd3ef7eddbf | |
parent | 25278891d8b0c5af378ff548881cd3558426ba3d (diff) |
test: Add proper prototypes for main() function
Warned-by: gcc
-rw-r--r-- | test/bzero.c | 2 | ||||
-rw-r--r-- | test/closefrom.c | 2 | ||||
-rw-r--r-- | test/endian.c | 2 | ||||
-rw-r--r-- | test/fpurge.c | 2 | ||||
-rw-r--r-- | test/md5.c | 2 | ||||
-rw-r--r-- | test/overlay.c | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/test/bzero.c b/test/bzero.c index 227b163..6c4ec30 100644 --- a/test/bzero.c +++ b/test/bzero.c @@ -28,7 +28,7 @@ #include <string.h> int -main() +main(int argc, char *argv[]) { unsigned char array[40]; size_t i; diff --git a/test/closefrom.c b/test/closefrom.c index b5e7e92..160e6b1 100644 --- a/test/closefrom.c +++ b/test/closefrom.c @@ -31,7 +31,7 @@ #include <stdio.h> int -main() +main(int argc, char *argv[]) { int i; int fd; diff --git a/test/endian.c b/test/endian.c index 349675f..06e5fcc 100644 --- a/test/endian.c +++ b/test/endian.c @@ -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, diff --git a/test/fpurge.c b/test/fpurge.c index 03f107f..a99cff7 100644 --- a/test/fpurge.c +++ b/test/fpurge.c @@ -27,7 +27,7 @@ #include <stdio.h> int -main() +main(int argc, char *argv[]) { static FILE fp_bad; FILE *fp; @@ -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"); diff --git a/test/overlay.c b/test/overlay.c index 0ec6d7c..d82f14e 100644 --- a/test/overlay.c +++ b/test/overlay.c @@ -45,7 +45,7 @@ #include <unistd.h> int -main() +main(int argc, char *argv[]) { /* Test that we do not get partial definitions. */ fflush(stdout); |