summaryrefslogtreecommitdiff
path: root/toxcore/net_crypto.c
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2016-09-11 15:47:51 +0100
committeriphydf <iphydf@users.noreply.github.com>2016-09-13 00:32:02 +0100
commit0aa2840164fc782f150cd45f8668ca623e6002cf (patch)
tree68d4b762c6233946fc3e73af546e2a5a5f6cdb16 /toxcore/net_crypto.c
parent2b2dc07f6f7fe28a8e558125d977d2fa9cef3881 (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.c5
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
34static uint8_t crypt_connection_id_not_valid(const Net_Crypto *c, int crypt_connection_id) 37static 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) {