diff options
author | iphydf <iphydf@users.noreply.github.com> | 2016-09-12 21:37:58 +0100 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2016-09-13 01:07:02 +0100 |
commit | a8823830d39bdbde8d4f4f34bfcb26dc4bf79741 (patch) | |
tree | 086d51b0db42c8fdbef669d002739f607db52f01 /toxcore/onion_client.c | |
parent | 0aa2840164fc782f150cd45f8668ca623e6002cf (diff) |
Add some astyle options to make it do more.
It now enforces a bit more formatting. In particular, padding inside
parentheses is removed. I would like it to remove padding after unary
operators, but there seems to be no option for that.
Diffstat (limited to 'toxcore/onion_client.c')
-rw-r--r-- | toxcore/onion_client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/onion_client.c b/toxcore/onion_client.c index a140e008..0dca8525 100644 --- a/toxcore/onion_client.c +++ b/toxcore/onion_client.c | |||
@@ -642,7 +642,7 @@ static int client_ping_nodes(Onion_Client *onion_c, uint32_t num, const Node_for | |||
642 | if (is_timeout(list_nodes[0].timestamp, ONION_NODE_TIMEOUT) | 642 | if (is_timeout(list_nodes[0].timestamp, ONION_NODE_TIMEOUT) |
643 | || id_closest(reference_id, list_nodes[0].public_key, nodes[i].public_key) == 2 | 643 | || id_closest(reference_id, list_nodes[0].public_key, nodes[i].public_key) == 2 |
644 | || is_timeout(list_nodes[1].timestamp, ONION_NODE_TIMEOUT) | 644 | || is_timeout(list_nodes[1].timestamp, ONION_NODE_TIMEOUT) |
645 | || id_closest(reference_id, list_nodes[1].public_key, nodes[i].public_key) == 2 ) { | 645 | || id_closest(reference_id, list_nodes[1].public_key, nodes[i].public_key) == 2) { |
646 | /* check if node is already in list. */ | 646 | /* check if node is already in list. */ |
647 | for (j = 0; j < list_length; ++j) { | 647 | for (j = 0; j < list_length; ++j) { |
648 | if (public_key_cmp(list_nodes[j].public_key, nodes[i].public_key) == 0) { | 648 | if (public_key_cmp(list_nodes[j].public_key, nodes[i].public_key) == 0) { |