diff options
Diffstat (limited to 'toxcore/TCP_connection.c')
-rw-r--r-- | toxcore/TCP_connection.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/toxcore/TCP_connection.c b/toxcore/TCP_connection.c index bfd55fa0..25dfa09c 100644 --- a/toxcore/TCP_connection.c +++ b/toxcore/TCP_connection.c | |||
@@ -223,8 +223,8 @@ int send_packet_tcp_connection(TCP_Connections *tcp_c, int connections_number, c | |||
223 | return -1; | 223 | return -1; |
224 | } | 224 | } |
225 | 225 | ||
226 | //TODO: detect and kill bad relays. | 226 | // TODO(irungentoo): detect and kill bad relays. |
227 | //TODO: thread safety? | 227 | // TODO(irungentoo): thread safety? |
228 | unsigned int i; | 228 | unsigned int i; |
229 | int ret = -1; | 229 | int ret = -1; |
230 | 230 | ||
@@ -293,8 +293,8 @@ int send_packet_tcp_connection(TCP_Connections *tcp_c, int connections_number, c | |||
293 | 293 | ||
294 | /* Return a random TCP connection number for use in send_tcp_onion_request. | 294 | /* Return a random TCP connection number for use in send_tcp_onion_request. |
295 | * | 295 | * |
296 | * TODO: This number is just the index of an array that the elements can | 296 | * TODO(irungentoo): This number is just the index of an array that the elements |
297 | * change without warning. | 297 | * can change without warning. |
298 | * | 298 | * |
299 | * return TCP connection number on success. | 299 | * return TCP connection number on success. |
300 | * return -1 on failure. | 300 | * return -1 on failure. |
@@ -977,7 +977,7 @@ static int tcp_oob_callback(void *object, const uint8_t *public_key, const uint8 | |||
977 | return -1; | 977 | return -1; |
978 | } | 978 | } |
979 | 979 | ||
980 | /* TODO: optimize */ | 980 | /* TODO(irungentoo): optimize */ |
981 | int connections_number = find_tcp_connection_to(tcp_c, public_key); | 981 | int connections_number = find_tcp_connection_to(tcp_c, public_key); |
982 | 982 | ||
983 | TCP_Connection_to *con_to = get_connection(tcp_c, connections_number); | 983 | TCP_Connection_to *con_to = get_connection(tcp_c, connections_number); |