mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
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:
parent
6197494d6b
commit
69c71ddd23
|
@ -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;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user