diff options
author | iphydf <iphydf@users.noreply.github.com> | 2020-05-16 23:04:10 +0100 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2020-05-17 18:16:42 +0100 |
commit | 03a511482ffa643a636cd5bcce596f110ca2d8e0 (patch) | |
tree | f984d78add7a716a8451907aecbbcdcb2dff690c /toxcore/onion_client.c | |
parent | fe8e0fb8fa46a815e89e3722a7c92b35181c2ce8 (diff) |
Format comments according to tokstyle's requirements.
Diffstat (limited to 'toxcore/onion_client.c')
-rw-r--r-- | toxcore/onion_client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/onion_client.c b/toxcore/onion_client.c index c1b2dcf7..bd40de13 100644 --- a/toxcore/onion_client.c +++ b/toxcore/onion_client.c | |||
@@ -21,7 +21,7 @@ | |||
21 | #include "util.h" | 21 | #include "util.h" |
22 | 22 | ||
23 | /* defines for the array size and | 23 | /* defines for the array size and |
24 | timeout for onion announce packets. */ | 24 | * timeout for onion announce packets. */ |
25 | #define ANNOUNCE_ARRAY_SIZE 256 | 25 | #define ANNOUNCE_ARRAY_SIZE 256 |
26 | #define ANNOUNCE_TIMEOUT 10 | 26 | #define ANNOUNCE_TIMEOUT 10 |
27 | 27 | ||
@@ -1782,7 +1782,7 @@ static int onion_isconnected(const Onion_Client *onion_c) | |||
1782 | } | 1782 | } |
1783 | 1783 | ||
1784 | /* Consider ourselves online if we are announced to half or more nodes | 1784 | /* Consider ourselves online if we are announced to half or more nodes |
1785 | we are connected to */ | 1785 | * we are connected to */ |
1786 | if (num && announced) { | 1786 | if (num && announced) { |
1787 | if ((num / 2) <= announced && (pnodes / 2) <= num) { | 1787 | if ((num / 2) <= announced && (pnodes / 2) <= num) { |
1788 | return 1; | 1788 | return 1; |