mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-01-07 17:52:34 +01:00
test: Add proper prototypes for main() function
Warned-by: gcc
This commit is contained in:
parent
25278891d8
commit
3c305f2873
@ -28,7 +28,7 @@
|
||||
#include <string.h>
|
||||
|
||||
int
|
||||
main()
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
unsigned char array[40];
|
||||
size_t i;
|
||||
|
@ -31,7 +31,7 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int
|
||||
main()
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
int i;
|
||||
int fd;
|
||||
|
@ -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,
|
||||
|
@ -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");
|
||||
|
@ -45,7 +45,7 @@
|
||||
#include <unistd.h>
|
||||
|
||||
int
|
||||
main()
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
/* Test that we do not get partial definitions. */
|
||||
fflush(stdout);
|
||||
|
Loading…
Reference in New Issue
Block a user