summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toxcore/TCP_connection.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/toxcore/TCP_connection.c b/toxcore/TCP_connection.c
index d4c1b7c1..7b478611 100644
--- a/toxcore/TCP_connection.c
+++ b/toxcore/TCP_connection.c
@@ -551,7 +551,7 @@ int set_tcp_connection_to_status(TCP_Connections *tcp_c, int connections_number,
551 } 551 }
552} 552}
553 553
554static _Bool tcp_connection_in_conn(TCP_Connection_to *con_to, int tcp_connections_number) 554static _Bool tcp_connection_in_conn(TCP_Connection_to *con_to, unsigned int tcp_connections_number)
555{ 555{
556 unsigned int i; 556 unsigned int i;
557 557
@@ -567,7 +567,7 @@ static _Bool tcp_connection_in_conn(TCP_Connection_to *con_to, int tcp_connectio
567/* return index on success. 567/* return index on success.
568 * return -1 on failure. 568 * return -1 on failure.
569 */ 569 */
570static int add_tcp_connection_to_conn(TCP_Connection_to *con_to, int tcp_connections_number) 570static int add_tcp_connection_to_conn(TCP_Connection_to *con_to, unsigned int tcp_connections_number)
571{ 571{
572 unsigned int i; 572 unsigned int i;
573 573
@@ -589,7 +589,7 @@ static int add_tcp_connection_to_conn(TCP_Connection_to *con_to, int tcp_connect
589/* return index on success. 589/* return index on success.
590 * return -1 on failure. 590 * return -1 on failure.
591 */ 591 */
592static int rm_tcp_connection_from_conn(TCP_Connection_to *con_to, int tcp_connections_number) 592static int rm_tcp_connection_from_conn(TCP_Connection_to *con_to, unsigned int tcp_connections_number)
593{ 593{
594 unsigned int i; 594 unsigned int i;
595 595
@@ -626,8 +626,8 @@ static unsigned int online_tcp_connection_from_conn(TCP_Connection_to *con_to)
626/* return index on success. 626/* return index on success.
627 * return -1 on failure. 627 * return -1 on failure.
628 */ 628 */
629static int set_tcp_connection_status(TCP_Connection_to *con_to, int tcp_connections_number, unsigned int status, 629static int set_tcp_connection_status(TCP_Connection_to *con_to, unsigned int tcp_connections_number,
630 uint8_t connection_id) 630 unsigned int status, uint8_t connection_id)
631{ 631{
632 unsigned int i; 632 unsigned int i;
633 633