summaryrefslogtreecommitdiff
path: root/toxcore/DHT.c
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2020-03-14 02:22:39 +0000
committeriphydf <iphydf@users.noreply.github.com>2020-03-14 13:28:42 +0000
commitcb22b3df5f0b7509a37e091360ecbb4d8a9f2873 (patch)
treedd12e81f5f61e6ec268bd03d2e6951a7abee9506 /toxcore/DHT.c
parent11ad5471b91dc1b36552ba4e5a3ea434c8a30f5f (diff)
Fix up comments a bit to start being more uniform.
Tokstyle (check-cimple) will start enforcing comment formats at some point. It will not support arbitrary stuff in comments, and will parse them. The result can then be semantically analysed.
Diffstat (limited to 'toxcore/DHT.c')
-rw-r--r--toxcore/DHT.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/DHT.c b/toxcore/DHT.c
index 55116bc0..fb2e125d 100644
--- a/toxcore/DHT.c
+++ b/toxcore/DHT.c
@@ -610,7 +610,7 @@ int unpack_nodes(Node_format *nodes, uint16_t max_num_nodes, uint16_t *processed
610 return num; 610 return num;
611} 611}
612 612
613/* Find index of ##type with public_key equal to pk. 613/* Find index in an array with public_key equal to pk.
614 * 614 *
615 * return index or UINT32_MAX if not found. 615 * return index or UINT32_MAX if not found.
616 */ 616 */
@@ -1112,7 +1112,7 @@ static bool is_pk_in_close_list(DHT *dht, const uint8_t *public_key, IP_Port ip_
1112} 1112}
1113 1113
1114/* Check if the node obtained with a get_nodes with public_key should be pinged. 1114/* Check if the node obtained with a get_nodes with public_key should be pinged.
1115 * NOTE: for best results call it after addto_lists; 1115 * NOTE: for best results call it after addto_lists.
1116 * 1116 *
1117 * return false if the node should not be pinged. 1117 * return false if the node should not be pinged.
1118 * return true if it should. 1118 * return true if it should.