summaryrefslogtreecommitdiff
path: root/toxcore/net_crypto.c
diff options
context:
space:
mode:
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) {