diff options
-rw-r--r-- | core/DHT.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -861,12 +861,12 @@ void doDHTFriends() | |||
861 | { | 861 | { |
862 | uint32_t i, j; | 862 | uint32_t i, j; |
863 | uint32_t temp_time = unix_time(); | 863 | uint32_t temp_time = unix_time(); |
864 | uint32_t num_nodes = 0; | ||
865 | uint32_t rand_node; | 864 | uint32_t rand_node; |
866 | uint32_t index[MAX_FRIEND_CLIENTS]; | 865 | uint32_t index[MAX_FRIEND_CLIENTS]; |
867 | 866 | ||
868 | for(i = 0; i < num_friends; ++i) | 867 | for(i = 0; i < num_friends; ++i) |
869 | { | 868 | { |
869 | uint32_t num_nodes = 0; | ||
870 | for(j = 0; j < MAX_FRIEND_CLIENTS; ++j) | 870 | for(j = 0; j < MAX_FRIEND_CLIENTS; ++j) |
871 | { | 871 | { |
872 | if(friends_list[i].client_list[j].timestamp + Kill_NODE_TIMEOUT > temp_time) /* if node is not dead. */ | 872 | if(friends_list[i].client_list[j].timestamp + Kill_NODE_TIMEOUT > temp_time) /* if node is not dead. */ |