From 3c305f2873580322823af53d9b9202b8ce658c32 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Fri, 19 Feb 2021 06:49:53 +0100 Subject: [PATCH] test: Add proper prototypes for main() function Warned-by: gcc --- test/bzero.c | 2 +- test/closefrom.c | 2 +- test/endian.c | 2 +- test/fpurge.c | 2 +- test/md5.c | 2 +- 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 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 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 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 int -main() +main(int argc, char *argv[]) { static FILE fp_bad; FILE *fp; diff --git a/test/md5.c b/test/md5.c index bc2ed7d..b1b4af5 100644 --- a/test/md5.c +++ b/test/md5.c @@ -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 int -main() +main(int argc, char *argv[]) { /* Test that we do not get partial definitions. */ fflush(stdout);