mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-03-08 15:57:01 +08:00
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:
@@ -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;
|
||||
|
||||
@@ -54,7 +54,7 @@ static char *encoded_strings[] =
|
||||
"Ahoy matey!"
|
||||
};
|
||||
|
||||
int main()
|
||||
int main(void)
|
||||
{
|
||||
char *dec;
|
||||
unsigned i;
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#include "../src/ip-util.h"
|
||||
#include "../src/ip-util.c"
|
||||
|
||||
int main()
|
||||
int main(void)
|
||||
{
|
||||
char *p;
|
||||
|
||||
|
||||
@@ -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];
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
#include "../src/common-config.h"
|
||||
#include "../src/config-kkdcp.c"
|
||||
|
||||
int main()
|
||||
int main(void)
|
||||
{
|
||||
#ifndef HAVE_GSSAPI
|
||||
exit(77);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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];
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#include "../src/str.c"
|
||||
|
||||
#define STR1 " hi there people. How are you?"
|
||||
int main()
|
||||
int main(void)
|
||||
{
|
||||
char str[64];
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ static char *decoded_strings[] =
|
||||
"Laguna%+@Beach"
|
||||
};
|
||||
|
||||
int main()
|
||||
int main(void)
|
||||
{
|
||||
char *dec, *url;
|
||||
unsigned i;
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
* as expected.
|
||||
*/
|
||||
|
||||
int main()
|
||||
int main(void)
|
||||
{
|
||||
/* check invalid hostnames */
|
||||
assert(valid_hostname("192.168.1.1") == 0);
|
||||
|
||||
Reference in New Issue
Block a user