Bad function definition - int main() should be int main(void)

Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
This commit is contained in:
Dimitri Papadopoulos
2023-05-25 17:35:26 +02:00
parent c221d901dc
commit d6d5680249
12 changed files with 12 additions and 12 deletions

View File

@@ -52,7 +52,7 @@ unsigned check_if_banned_str(main_server_st *s, const char *ip)
return check_if_banned(s, &addr, addr.ss_family==AF_INET?sizeof(struct sockaddr_in):sizeof(struct sockaddr_in6));
}
int main()
int main(void)
{
main_server_st *s = talloc(NULL, struct main_server_st);
vhost_cfg_st *vhost;

View File

@@ -54,7 +54,7 @@ static char *encoded_strings[] =
"Ahoy matey&#33"
};
int main()
int main(void)
{
char *dec;
unsigned i;

View File

@@ -106,7 +106,7 @@ static void check_port(const char *ip, unsigned port)
}
}
int main()
int main(void)
{
check("172.18.52.43");
check("192.168.1.1");

View File

@@ -23,7 +23,7 @@
#include "../src/ip-util.h"
#include "../src/ip-util.c"
int main()
int main(void)
{
char *p;

View File

@@ -36,7 +36,7 @@ static char* my_ipv6_prefix_to_mask(char str[MAX_IP_STR], unsigned prefix)
return str;
}
int main()
int main(void)
{
char *p;
char str[MAX_IP_STR];

View File

@@ -46,7 +46,7 @@ static char *encoded_strings[] =
"\\u0009big pile \\u0008\\u0008 of stuff\\u000d\\u000a"
};
int main()
int main(void)
{
char tmp[512];
char *p;

View File

@@ -27,7 +27,7 @@
#include "../src/common-config.h"
#include "../src/config-kkdcp.c"
int main()
int main(void)
{
#ifndef HAVE_GSSAPI
exit(77);

View File

@@ -60,7 +60,7 @@ void check_vals(FwPortSt **fw_ports, size_t n_fw_ports) {
}
}
int main()
int main(void)
{
char p[256];
int ret;

View File

@@ -30,7 +30,7 @@ static char *myfunc(void *pool, const char *str)
}
#define STR1 "hi there people. How are you?"
int main()
int main(void)
{
str_st str;
str_rep_tab tab[16];

View File

@@ -25,7 +25,7 @@
#include "../src/str.c"
#define STR1 " hi there people. How are you?"
int main()
int main(void)
{
char str[64];

View File

@@ -40,7 +40,7 @@ static char *decoded_strings[] =
"Laguna%+@Beach"
};
int main()
int main(void)
{
char *dec, *url;
unsigned i;

View File

@@ -27,7 +27,7 @@
* as expected.
*/
int main()
int main(void)
{
/* check invalid hostnames */
assert(valid_hostname("192.168.1.1") == 0);