summaryrefslogtreecommitdiff
path: root/toxcore
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2015-01-06 22:56:21 -0500
committerirungentoo <irungentoo@gmail.com>2015-01-06 22:56:21 -0500
commit139fc8e0f0b31048620a0cccf71a91182337a043 (patch)
treef1cebd15172f6bba678692fc12f981715054c0e4 /toxcore
parent4858d2c6286d8a2cddf6a1f08f1d89a0dd5435ed (diff)
Removed unused variables.
Diffstat (limited to 'toxcore')
-rw-r--r--toxcore/DHT.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/toxcore/DHT.c b/toxcore/DHT.c
index 734d7cb8..653b401f 100644
--- a/toxcore/DHT.c
+++ b/toxcore/DHT.c
@@ -669,8 +669,6 @@ static int replace_all( Client_data *list,
669 if ((ip_port.ip.family != AF_INET) && (ip_port.ip.family != AF_INET6)) 669 if ((ip_port.ip.family != AF_INET) && (ip_port.ip.family != AF_INET6))
670 return 0; 670 return 0;
671 671
672 _Bool replace = 0;
673
674 memcpy(cmp_public_key, comp_client_id, crypto_box_PUBLICKEYBYTES); 672 memcpy(cmp_public_key, comp_client_id, crypto_box_PUBLICKEYBYTES);
675 qsort(list, length, sizeof(Client_data), cmp_dht_entry); 673 qsort(list, length, sizeof(Client_data), cmp_dht_entry);
676 674
@@ -1233,7 +1231,6 @@ int DHT_delfriend(DHT *dht, const uint8_t *client_id, uint16_t lock_count)
1233 return 0; 1231 return 0;
1234 } 1232 }
1235 1233
1236 uint32_t i;
1237 DHT_Friend *temp; 1234 DHT_Friend *temp;
1238 1235
1239 --dht->num_friends; 1236 --dht->num_friends;
@@ -2386,7 +2383,7 @@ int DHT_connect_after_load(DHT *dht)
2386static int dht_load_state_callback(void *outer, const uint8_t *data, uint32_t length, uint16_t type) 2383static int dht_load_state_callback(void *outer, const uint8_t *data, uint32_t length, uint16_t type)
2387{ 2384{
2388 DHT *dht = outer; 2385 DHT *dht = outer;
2389 uint32_t num, i, j; 2386 uint32_t num, i;
2390 2387
2391 switch (type) { 2388 switch (type) {
2392 case DHT_STATE_TYPE_FRIENDS_ASSOC46: 2389 case DHT_STATE_TYPE_FRIENDS_ASSOC46: