diff --git a/toxcore/DHT.c b/toxcore/DHT.c index b680b12a..6dde6b8c 100644 --- a/toxcore/DHT.c +++ b/toxcore/DHT.c @@ -1100,7 +1100,7 @@ static unsigned int ping_node_from_getnodes_ok(DHT *dht, const uint8_t *public_k * * returns 1+ if the item is used in any list, 0 else */ -int addto_lists(DHT *dht, IP_Port ip_port, const uint8_t *public_key) +uint32_t addto_lists(DHT *dht, IP_Port ip_port, const uint8_t *public_key) { uint32_t used = 0; diff --git a/toxcore/DHT.h b/toxcore/DHT.h index 4b3b45e1..98fa18d6 100644 --- a/toxcore/DHT.h +++ b/toxcore/DHT.h @@ -455,6 +455,6 @@ int DHT_isconnected(const DHT *dht); int DHT_non_lan_connected(const DHT *dht); -int addto_lists(DHT *dht, IP_Port ip_port, const uint8_t *public_key); +uint32_t addto_lists(DHT *dht, IP_Port ip_port, const uint8_t *public_key); #endif