diff options
author | irungentoo <irungentoo@gmail.com> | 2014-01-19 14:00:41 -0500 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-01-19 14:00:41 -0500 |
commit | e6e21123505f3e92ec57352a300472d7cf914517 (patch) | |
tree | 974318e0adfcac3e540b02f8018b75c3fe073b7c /toxcore | |
parent | 639b37de672b26daae6bdb4119c0eb677cde0b54 (diff) |
Commented out now useless code.
Diffstat (limited to 'toxcore')
-rw-r--r-- | toxcore/DHT.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/toxcore/DHT.c b/toxcore/DHT.c index f93a6d7a..cc6afc9c 100644 --- a/toxcore/DHT.c +++ b/toxcore/DHT.c | |||
@@ -1155,6 +1155,7 @@ static int handle_sendnodes_ipv6(void *object, IP_Port source, uint8_t *packet, | |||
1155 | /* | 1155 | /* |
1156 | * Send get nodes requests with client_id to max_num peers in list of length length | 1156 | * Send get nodes requests with client_id to max_num peers in list of length length |
1157 | */ | 1157 | */ |
1158 | /* | ||
1158 | static void get_bunchnodes(DHT *dht, Client_data *list, uint16_t length, uint16_t max_num, uint8_t *client_id) | 1159 | static void get_bunchnodes(DHT *dht, Client_data *list, uint16_t length, uint16_t max_num, uint8_t *client_id) |
1159 | { | 1160 | { |
1160 | uint32_t i, num = 0; | 1161 | uint32_t i, num = 0; |
@@ -1174,7 +1175,7 @@ static void get_bunchnodes(DHT *dht, Client_data *list, uint16_t length, uint16_ | |||
1174 | } | 1175 | } |
1175 | } | 1176 | } |
1176 | } | 1177 | } |
1177 | 1178 | */ | |
1178 | int DHT_addfriend(DHT *dht, uint8_t *client_id) | 1179 | int DHT_addfriend(DHT *dht, uint8_t *client_id) |
1179 | { | 1180 | { |
1180 | if (friend_number(dht, client_id) != -1) /* Is friend already in DHT? */ | 1181 | if (friend_number(dht, client_id) != -1) /* Is friend already in DHT? */ |
@@ -1223,8 +1224,8 @@ int DHT_addfriend(DHT *dht, uint8_t *client_id) | |||
1223 | } | 1224 | } |
1224 | 1225 | ||
1225 | #endif | 1226 | #endif |
1226 | /*TODO: make this better?*/ | 1227 | /*this isn't really useful anymore. |
1227 | get_bunchnodes(dht, dht->close_clientlist, LCLIENT_LIST, MAX_FRIEND_CLIENTS, client_id); | 1228 | get_bunchnodes(dht, dht->close_clientlist, LCLIENT_LIST, MAX_FRIEND_CLIENTS, client_id);*/ |
1228 | 1229 | ||
1229 | return 0; | 1230 | return 0; |
1230 | } | 1231 | } |