diff options
author | iphydf <iphydf@users.noreply.github.com> | 2016-09-11 15:47:51 +0100 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2016-09-13 00:32:02 +0100 |
commit | 0aa2840164fc782f150cd45f8668ca623e6002cf (patch) | |
tree | 68d4b762c6233946fc3e73af546e2a5a5f6cdb16 /toxcore/DHT.c | |
parent | 2b2dc07f6f7fe28a8e558125d977d2fa9cef3881 (diff) |
Group #include directives in 3-4 groups.
1. Current module (if C file).
2. Headers from current library.
3. Headers from other library (e.g. toxcore includes in toxav).
4. System headers.
Diffstat (limited to 'toxcore/DHT.c')
-rw-r--r-- | toxcore/DHT.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/toxcore/DHT.c b/toxcore/DHT.c index f9910b06..beff0499 100644 --- a/toxcore/DHT.c +++ b/toxcore/DHT.c | |||
@@ -27,23 +27,20 @@ | |||
27 | #include "config.h" | 27 | #include "config.h" |
28 | #endif | 28 | #endif |
29 | 29 | ||
30 | #include <assert.h> | ||
31 | |||
32 | #include "logger.h" | ||
33 | |||
34 | #include "DHT.h" | 30 | #include "DHT.h" |
35 | 31 | ||
36 | #ifdef ENABLE_ASSOC_DHT | 32 | #ifdef ENABLE_ASSOC_DHT |
37 | #include "assoc.h" | 33 | #include "assoc.h" |
38 | #endif | 34 | #endif |
39 | |||
40 | #include "ping.h" | ||
41 | |||
42 | #include "LAN_discovery.h" | 35 | #include "LAN_discovery.h" |
36 | #include "logger.h" | ||
43 | #include "misc_tools.h" | 37 | #include "misc_tools.h" |
44 | #include "network.h" | 38 | #include "network.h" |
39 | #include "ping.h" | ||
45 | #include "util.h" | 40 | #include "util.h" |
46 | 41 | ||
42 | #include <assert.h> | ||
43 | |||
47 | /* The timeout after which a node is discarded completely. */ | 44 | /* The timeout after which a node is discarded completely. */ |
48 | #define KILL_NODE_TIMEOUT (BAD_NODE_TIMEOUT + PING_INTERVAL) | 45 | #define KILL_NODE_TIMEOUT (BAD_NODE_TIMEOUT + PING_INTERVAL) |
49 | 46 | ||