Change return type to be the same as return value type

Return value of 'addto_list' function is 'used' counter, which is uint32_t.
It will be better to use the same return type.
This commit is contained in:
Diadlo 2017-06-05 00:24:02 +03:00
parent 6197494d6b
commit 69c71ddd23
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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