test: Add proper prototypes for main() function

Warned-by: gcc
This commit is contained in:
Guillem Jover 2021-02-19 06:49:53 +01:00
parent 25278891d8
commit 3c305f2873
6 changed files with 6 additions and 6 deletions

View File

@ -28,7 +28,7 @@
#include <string.h> #include <string.h>
int int
main() main(int argc, char *argv[])
{ {
unsigned char array[40]; unsigned char array[40];
size_t i; size_t i;

View File

@ -31,7 +31,7 @@
#include <stdio.h> #include <stdio.h>
int int
main() main(int argc, char *argv[])
{ {
int i; int i;
int fd; int fd;

View File

@ -30,7 +30,7 @@
#include <string.h> #include <string.h>
int int
main() main(int argc, char *argv[])
{ {
unsigned char decstream[] = { unsigned char decstream[] = {
0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77,

View File

@ -27,7 +27,7 @@
#include <stdio.h> #include <stdio.h>
int int
main() main(int argc, char *argv[])
{ {
static FILE fp_bad; static FILE fp_bad;
FILE *fp; FILE *fp;

View File

@ -37,7 +37,7 @@ test_md5(const char *digest, const char *string)
} }
int int
main() main(int argc, char *argv[])
{ {
test_md5("d41d8cd98f00b204e9800998ecf8427e", ""); test_md5("d41d8cd98f00b204e9800998ecf8427e", "");
test_md5("900150983cd24fb0d6963f7d28e17f72", "abc"); test_md5("900150983cd24fb0d6963f7d28e17f72", "abc");

View File

@ -45,7 +45,7 @@
#include <unistd.h> #include <unistd.h>
int int
main() main(int argc, char *argv[])
{ {
/* Test that we do not get partial definitions. */ /* Test that we do not get partial definitions. */
fflush(stdout); fflush(stdout);