summaryrefslogtreecommitdiff
path: root/toxcore/DHT.h
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-08-27 12:52:34 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-08-27 12:54:46 +0000
commit0075374f2bb3bb72ef1112471f1aacf12b6b6658 (patch)
treeadd97dd9763a59685c3c36003c5962905cf6d751 /toxcore/DHT.h
parent25a477a7e429f108cb690d0c24701272ec30195f (diff)
Make `ip_is_lan` return bool instead of 0/-1.
This inverts the truthiness of the return value. Previously, 0 meant `true` and -1 meant `false`. Now, `true` (1) means `true` and `false` (0) means `false`.
Diffstat (limited to 'toxcore/DHT.h')
-rw-r--r--toxcore/DHT.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/DHT.h b/toxcore/DHT.h
index ef3fd0b0..4a7af4c7 100644
--- a/toxcore/DHT.h
+++ b/toxcore/DHT.h
@@ -322,7 +322,7 @@ bool node_addable_to_close_list(DHT *dht, const uint8_t *public_key, IP_Port ip_
322 * 322 *
323 */ 323 */
324int get_close_nodes(const DHT *dht, const uint8_t *public_key, Node_format *nodes_list, Family sa_family, 324int get_close_nodes(const DHT *dht, const uint8_t *public_key, Node_format *nodes_list, Family sa_family,
325 uint8_t is_LAN, uint8_t want_good); 325 bool is_LAN, uint8_t want_good);
326 326
327 327
328/* Put up to max_num nodes in nodes from the random friends. 328/* Put up to max_num nodes in nodes from the random friends.