summaryrefslogtreecommitdiff
path: root/toxcore/TCP_connection.c
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2015-04-23 20:59:08 -0400
committerirungentoo <irungentoo@gmail.com>2015-04-23 20:59:08 -0400
commite24d57d46745a4f646b3efd5df5281bbf762a0be (patch)
tree8b3e42cdda3f40cd78b8c5eb9ef28f224d62bd21 /toxcore/TCP_connection.c
parentfc549805c1abfeac3d73f88aa95c1f58dc5ef499 (diff)
Fixed some warnings.
Diffstat (limited to 'toxcore/TCP_connection.c')
-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