summaryrefslogtreecommitdiff
path: root/toxcore/DHT.c
diff options
context:
space:
mode:
authorDiadlo <polsha3@gmail.com>2017-06-05 00:24:02 +0300
committerDiadlo <polsha3@gmail.com>2017-06-05 01:51:12 +0300
commit69c71ddd239fe80c2b3b981166d1101f1ac4a418 (patch)
treea06c0cc18212959168e5939dac5b95621c15aeb3 /toxcore/DHT.c
parent6197494d6b96591ae0164c66602c5306c31a9c44 (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.c2
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 */
1103int addto_lists(DHT *dht, IP_Port ip_port, const uint8_t *public_key) 1103uint32_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