mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed some warnings.
This commit is contained in:
parent
fc549805c1
commit
e24d57d467
|
@ -551,7 +551,7 @@ int set_tcp_connection_to_status(TCP_Connections *tcp_c, int connections_number,
|
|||
}
|
||||
}
|
||||
|
||||
static _Bool tcp_connection_in_conn(TCP_Connection_to *con_to, int tcp_connections_number)
|
||||
static _Bool tcp_connection_in_conn(TCP_Connection_to *con_to, unsigned int tcp_connections_number)
|
||||
{
|
||||
unsigned int i;
|
||||
|
||||
|
@ -567,7 +567,7 @@ static _Bool tcp_connection_in_conn(TCP_Connection_to *con_to, int tcp_connectio
|
|||
/* return index on success.
|
||||
* return -1 on failure.
|
||||
*/
|
||||
static int add_tcp_connection_to_conn(TCP_Connection_to *con_to, int tcp_connections_number)
|
||||
static int add_tcp_connection_to_conn(TCP_Connection_to *con_to, unsigned int tcp_connections_number)
|
||||
{
|
||||
unsigned int i;
|
||||
|
||||
|
@ -589,7 +589,7 @@ static int add_tcp_connection_to_conn(TCP_Connection_to *con_to, int tcp_connect
|
|||
/* return index on success.
|
||||
* return -1 on failure.
|
||||
*/
|
||||
static int rm_tcp_connection_from_conn(TCP_Connection_to *con_to, int tcp_connections_number)
|
||||
static int rm_tcp_connection_from_conn(TCP_Connection_to *con_to, unsigned int tcp_connections_number)
|
||||
{
|
||||
unsigned int i;
|
||||
|
||||
|
@ -626,8 +626,8 @@ static unsigned int online_tcp_connection_from_conn(TCP_Connection_to *con_to)
|
|||
/* return index on success.
|
||||
* return -1 on failure.
|
||||
*/
|
||||
static int set_tcp_connection_status(TCP_Connection_to *con_to, int tcp_connections_number, unsigned int status,
|
||||
uint8_t connection_id)
|
||||
static int set_tcp_connection_status(TCP_Connection_to *con_to, unsigned int tcp_connections_number,
|
||||
unsigned int status, uint8_t connection_id)
|
||||
{
|
||||
unsigned int i;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user