summaryrefslogtreecommitdiff
path: root/toxcore/DHT.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/DHT.c')
-rw-r--r--toxcore/DHT.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/toxcore/DHT.c b/toxcore/DHT.c
index a958938d..c4d1aa4c 100644
--- a/toxcore/DHT.c
+++ b/toxcore/DHT.c
@@ -473,8 +473,10 @@ static int friend_number(const DHT *dht, const uint8_t *public_key)
473 return -1; 473 return -1;
474} 474}
475 475
476static _Bool add_to_list(Node_format *nodes_list, unsigned int length, const uint8_t *pk, IP_Port ip_port, 476/* Add node to the node list making sure only the nodes closest to cmp_pk are in the list.
477 const uint8_t *cmp_pk) 477 */
478_Bool add_to_list(Node_format *nodes_list, unsigned int length, const uint8_t *pk, IP_Port ip_port,
479 const uint8_t *cmp_pk)
478{ 480{
479 uint8_t pk_bak[crypto_box_PUBLICKEYBYTES]; 481 uint8_t pk_bak[crypto_box_PUBLICKEYBYTES];
480 IP_Port ip_port_bak; 482 IP_Port ip_port_bak;