summaryrefslogtreecommitdiff
path: root/toxcore/DHT.c
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2016-09-30 15:15:50 +0100
committeriphydf <iphydf@users.noreply.github.com>2016-09-30 19:06:44 +0100
commit1977d56caaff40ea9bbf6754b69bec9539a5a969 (patch)
treedb9c6d6c59dc0f91900dafe85dea1ab90f0ca8d9 /toxcore/DHT.c
parent949ef785a4e7aa7868c9605b6bbed15c3f4beab9 (diff)
Remove return after no-return situation (and other cleanups).
Cleanups: - Fix header guards to not use reserved names. - Avoid name shadowing. - Removed an unused variable found by avoiding name shadowing.
Diffstat (limited to 'toxcore/DHT.c')
-rw-r--r--toxcore/DHT.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/toxcore/DHT.c b/toxcore/DHT.c
index ed03fac8..b3e68288 100644
--- a/toxcore/DHT.c
+++ b/toxcore/DHT.c
@@ -1686,10 +1686,10 @@ static void do_Close(DHT *dht)
1686 * so: reset all nodes to be BAD_NODE_TIMEOUT, but not 1686 * so: reset all nodes to be BAD_NODE_TIMEOUT, but not
1687 * KILL_NODE_TIMEOUT, so we at least keep trying pings */ 1687 * KILL_NODE_TIMEOUT, so we at least keep trying pings */
1688 uint64_t badonly = unix_time() - BAD_NODE_TIMEOUT; 1688 uint64_t badonly = unix_time() - BAD_NODE_TIMEOUT;
1689 size_t i, a; 1689 size_t j, a;
1690 1690
1691 for (i = 0; i < LCLIENT_LIST; i++) { 1691 for (j = 0; j < LCLIENT_LIST; j++) {
1692 Client_data *client = &dht->close_clientlist[i]; 1692 Client_data *client = &dht->close_clientlist[j];
1693 IPPTsPng *assoc; 1693 IPPTsPng *assoc;
1694 1694
1695 for (a = 0, assoc = &client->assoc4; a < 2; a++, assoc = &client->assoc6) { 1695 for (a = 0, assoc = &client->assoc4; a < 2; a++, assoc = &client->assoc6) {