summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilentSand <edb881@gmail.com>2013-07-26 04:08:39 -0400
committerSilentSand <edb881@gmail.com>2013-07-26 04:08:39 -0400
commit1577a1eb61b6e2839aec962025d78e8703be3661 (patch)
tree8ef350879553acd22c20887016f4249815ab1d0f
parent59b34e423beb75fcd3e3c8abc2c05fe60aca26bc (diff)
Minor screwup fixed
I sure wish it was easier to compile on Windows.
-rw-r--r--core/DHT.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/DHT.c b/core/DHT.c
index 3fca85e6..857ac5e8 100644
--- a/core/DHT.c
+++ b/core/DHT.c
@@ -756,7 +756,7 @@ IP_Port DHT_getfriendip(uint8_t * client_id)
756 uint32_t temp_time = unix_time(); 756 uint32_t temp_time = unix_time();
757 for(i = 0; i < num_friends; ++i) { 757 for(i = 0; i < num_friends; ++i) {
758 /* Equal */ 758 /* Equal */
759 if(memcmp(friends_list[i].client_id, client_id, CLIENT_ID_SIZE) == 0)1 { 759 if(memcmp(friends_list[i].client_id, client_id, CLIENT_ID_SIZE) == 0) {
760 for(j = 0; j < MAX_FRIEND_CLIENTS; ++j) { 760 for(j = 0; j < MAX_FRIEND_CLIENTS; ++j) {
761 if(memcmp(friends_list[i].client_list[j].client_id, client_id, CLIENT_ID_SIZE) == 0 && 761 if(memcmp(friends_list[i].client_list[j].client_id, client_id, CLIENT_ID_SIZE) == 0 &&
762 friends_list[i].client_list[j].timestamp + BAD_NODE_TIMEOUT > temp_time) { 762 friends_list[i].client_list[j].timestamp + BAD_NODE_TIMEOUT > temp_time) {