diff options
author | irungentoo <irungentoo@gmail.com> | 2013-07-08 12:36:11 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-07-08 12:36:11 -0400 |
commit | c00cf85078a3d0ba372dc95d9ca1f54007d10ba5 (patch) | |
tree | c3d1a1da9c4e026d200152fa6b2acb46a218a808 /core/DHT.c | |
parent | 9a0d74908340e1a5e244eebae54feef584544261 (diff) |
Spelling mistakes fixed.
Diffstat (limited to 'core/DHT.c')
-rw-r--r-- | core/DHT.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -246,7 +246,7 @@ int get_close_nodes(uint8_t * client_id, Node_format * nodes_list) | |||
246 | 246 | ||
247 | 247 | ||
248 | //replace first bad (or empty) node with this one | 248 | //replace first bad (or empty) node with this one |
249 | //return 0 if successfull | 249 | //return 0 if successful |
250 | //return 1 if not (list contains no bad nodes) | 250 | //return 1 if not (list contains no bad nodes) |
251 | int replace_bad(Client_data * list, uint32_t length, uint8_t * client_id, IP_Port ip_port)//tested | 251 | int replace_bad(Client_data * list, uint32_t length, uint8_t * client_id, IP_Port ip_port)//tested |
252 | { | 252 | { |
@@ -291,7 +291,7 @@ void addto_lists(IP_Port ip_port, uint8_t * client_id) | |||
291 | { | 291 | { |
292 | uint32_t i; | 292 | uint32_t i; |
293 | 293 | ||
294 | //NOTE: current behaviour if there are two clients with the same id is to only keep one (the first one) | 294 | //NOTE: current behavior if there are two clients with the same id is to only keep one (the first one) |
295 | if(!client_in_list(close_clientlist, LCLIENT_LIST, client_id, ip_port)) | 295 | if(!client_in_list(close_clientlist, LCLIENT_LIST, client_id, ip_port)) |
296 | { | 296 | { |
297 | 297 | ||
@@ -548,7 +548,7 @@ int sendnodes(IP_Port ip_port, uint8_t * client_id, uint32_t ping_id) | |||
548 | 548 | ||
549 | 549 | ||
550 | //Packet handling functions | 550 | //Packet handling functions |
551 | //One to handle each types of packets we recieve | 551 | //One to handle each types of packets we receive |
552 | //return 0 if handled correctly, 1 if packet is bad. | 552 | //return 0 if handled correctly, 1 if packet is bad. |
553 | int handle_pingreq(uint8_t * packet, uint32_t length, IP_Port source)//tested | 553 | int handle_pingreq(uint8_t * packet, uint32_t length, IP_Port source)//tested |
554 | { | 554 | { |