mirror of
https://github.com/coturn/coturn.git
synced 2025-10-29 05:51:10 +01:00
Fix compilation warnings for functions with no arguments (#1053)
Function with no arguments must be defined as f(void) according to C standard
This commit is contained in:
parent
40c99db6ba
commit
af48249f29
@ -141,7 +141,7 @@ int set_sock_buf_size(evutil_socket_t fd, int sz0)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int socket_init()
|
int socket_init(void)
|
||||||
{
|
{
|
||||||
#if defined(WINDOWS)
|
#if defined(WINDOWS)
|
||||||
{
|
{
|
||||||
@ -1262,7 +1262,7 @@ unsigned long set_system_parameters(int max_resources)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned long get_system_number_of_cpus()
|
unsigned long get_system_number_of_cpus(void)
|
||||||
{
|
{
|
||||||
#if defined(WINDOWS)
|
#if defined(WINDOWS)
|
||||||
SYSTEM_INFO sysInfo;
|
SYSTEM_INFO sysInfo;
|
||||||
|
|||||||
@ -173,7 +173,7 @@ void read_spare_buffer(evutil_socket_t fd);
|
|||||||
|
|
||||||
int set_sock_buf_size(evutil_socket_t fd, int sz);
|
int set_sock_buf_size(evutil_socket_t fd, int sz);
|
||||||
|
|
||||||
int socket_init();
|
int socket_init(void);
|
||||||
int socket_set_reusable(evutil_socket_t fd, int reusable, SOCKET_TYPE st);
|
int socket_set_reusable(evutil_socket_t fd, int reusable, SOCKET_TYPE st);
|
||||||
int sock_bind_to_device(evutil_socket_t fd, const unsigned char* ifname);
|
int sock_bind_to_device(evutil_socket_t fd, const unsigned char* ifname);
|
||||||
int socket_set_nonblocking(evutil_socket_t fd);
|
int socket_set_nonblocking(evutil_socket_t fd);
|
||||||
@ -199,7 +199,7 @@ int get_raw_socket_ttl(evutil_socket_t fd, int family);
|
|||||||
|
|
||||||
void ignore_sigpipe(void);
|
void ignore_sigpipe(void);
|
||||||
unsigned long set_system_parameters(int max_resources);
|
unsigned long set_system_parameters(int max_resources);
|
||||||
unsigned long get_system_number_of_cpus();
|
unsigned long get_system_number_of_cpus(void);
|
||||||
|
|
||||||
///////////////////////// MTU //////////////////////////
|
///////////////////////// MTU //////////////////////////
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user