summaryrefslogtreecommitdiff
path: root/toxcore/TCP_connection.c
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2016-09-12 16:48:35 +0100
committeriphydf <iphydf@users.noreply.github.com>2016-09-16 12:06:02 +0100
commit1494e474dde58ec6e446cdbfad9a8d89f6c4796c (patch)
treee454a18a0f61468d10833d8e80039d025f94f568 /toxcore/TCP_connection.c
parent37c041f8159f7e89f2585243e9b8073f47d77fd1 (diff)
Ensure that all TODOs have an owner.
In the future, all TODOs added either need a bug number (TODO(#NN)) or a person's github user name. By default, I made irungentoo the owner of all toxcore TODOs, mannol the owner of toxav TODOs, and myself the owner of API TODOs.
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 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);