From 139fc8e0f0b31048620a0cccf71a91182337a043 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Tue, 6 Jan 2015 22:56:21 -0500 Subject: [PATCH] Removed unused variables. --- toxcore/DHT.c | 5 +---- 1 file changed, 1 insertion(+), 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, if ((ip_port.ip.family != AF_INET) && (ip_port.ip.family != AF_INET6)) return 0; - _Bool replace = 0; - memcpy(cmp_public_key, comp_client_id, crypto_box_PUBLICKEYBYTES); qsort(list, length, sizeof(Client_data), cmp_dht_entry); @@ -1233,7 +1231,6 @@ int DHT_delfriend(DHT *dht, const uint8_t *client_id, uint16_t lock_count) return 0; } - uint32_t i; DHT_Friend *temp; --dht->num_friends; @@ -2386,7 +2383,7 @@ int DHT_connect_after_load(DHT *dht) static int dht_load_state_callback(void *outer, const uint8_t *data, uint32_t length, uint16_t type) { DHT *dht = outer; - uint32_t num, i, j; + uint32_t num, i; switch (type) { case DHT_STATE_TYPE_FRIENDS_ASSOC46: