1
0
mirror of https://github.com/coturn/coturn.git synced 2025-10-28 13:31:16 +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:
Pavel Punsky 2022-10-28 20:21:49 -07:00 committed by GitHub
parent 40c99db6ba
commit af48249f29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -141,7 +141,7 @@ int set_sock_buf_size(evutil_socket_t fd, int sz0)
return 0;
}
int socket_init()
int socket_init(void)
{
#if defined(WINDOWS)
{
@ -1262,7 +1262,7 @@ unsigned long set_system_parameters(int max_resources)
return 0;
}
unsigned long get_system_number_of_cpus()
unsigned long get_system_number_of_cpus(void)
{
#if defined(WINDOWS)
SYSTEM_INFO sysInfo;

View File

@ -173,7 +173,7 @@ void read_spare_buffer(evutil_socket_t fd);
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 sock_bind_to_device(evutil_socket_t fd, const unsigned char* ifname);
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);
unsigned long set_system_parameters(int max_resources);
unsigned long get_system_number_of_cpus();
unsigned long get_system_number_of_cpus(void);
///////////////////////// MTU //////////////////////////