diff options
author | Diadlo <polsha3@gmail.com> | 2017-06-05 00:24:02 +0300 |
---|---|---|
committer | Diadlo <polsha3@gmail.com> | 2017-06-05 01:51:12 +0300 |
commit | 69c71ddd239fe80c2b3b981166d1101f1ac4a418 (patch) | |
tree | a06c0cc18212959168e5939dac5b95621c15aeb3 /toxcore/DHT.c | |
parent | 6197494d6b96591ae0164c66602c5306c31a9c44 (diff) |
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.
Diffstat (limited to 'toxcore/DHT.c')
-rw-r--r-- | toxcore/DHT.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 | |||
1100 | * | 1100 | * |
1101 | * returns 1+ if the item is used in any list, 0 else | 1101 | * returns 1+ if the item is used in any list, 0 else |
1102 | */ | 1102 | */ |
1103 | int addto_lists(DHT *dht, IP_Port ip_port, const uint8_t *public_key) | 1103 | uint32_t addto_lists(DHT *dht, IP_Port ip_port, const uint8_t *public_key) |
1104 | { | 1104 | { |
1105 | uint32_t used = 0; | 1105 | uint32_t used = 0; |
1106 | 1106 | ||