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/net_crypto.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/net_crypto.c')
-rw-r--r-- | toxcore/net_crypto.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/toxcore/net_crypto.c b/toxcore/net_crypto.c index 72a34811..b93b5cde 100644 --- a/toxcore/net_crypto.c +++ b/toxcore/net_crypto.c | |||
@@ -27,10 +27,13 @@ | |||
27 | #include "config.h" | 27 | #include "config.h" |
28 | #endif | 28 | #endif |
29 | 29 | ||
30 | #include "math.h" | ||
31 | #include "net_crypto.h" | 30 | #include "net_crypto.h" |
31 | |||
32 | #include "util.h" | 32 | #include "util.h" |
33 | 33 | ||
34 | #include <math.h> | ||
35 | |||
36 | |||
34 | static uint8_t crypt_connection_id_not_valid(const Net_Crypto *c, int crypt_connection_id) | 37 | static uint8_t crypt_connection_id_not_valid(const Net_Crypto *c, int crypt_connection_id) |
35 | { | 38 | { |
36 | if ((uint32_t)crypt_connection_id >= c->crypto_connections_length) { | 39 | if ((uint32_t)crypt_connection_id >= c->crypto_connections_length) { |