summaryrefslogtreecommitdiff
path: root/toxcore/net_crypto.h
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2016-09-09 15:02:45 +0100
committeriphydf <iphydf@users.noreply.github.com>2016-09-09 19:30:50 +0100
commit406d292107f66a06f8db695645345b13ae8acc8b (patch)
tree6ef7cf318f973b5026637815b7f56311be88e376 /toxcore/net_crypto.h
parent769db9dd9a73208d32c22c52c8eef7446e026f81 (diff)
Minor cleanups: header reordering, adding {}.
I hadn't done this for the "fun" code, yet. Also, we should include system headers after our own headers. "In general, a module should be implemented by one or more .cpp files. Each of these .cpp files should include the header that defines their interface first. This ensures that all of the dependences of the module header have been properly added to the module header itself, and are not implicit. System headers should be included after user headers for a translation unit." -- http://llvm.org/docs/CodingStandards.html#a-public-header-file-is-a-module
Diffstat (limited to 'toxcore/net_crypto.h')
-rw-r--r--toxcore/net_crypto.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/net_crypto.h b/toxcore/net_crypto.h
index c42463fc..c5eb3ecb 100644
--- a/toxcore/net_crypto.h
+++ b/toxcore/net_crypto.h
@@ -24,11 +24,11 @@
24#ifndef NET_CRYPTO_H 24#ifndef NET_CRYPTO_H
25#define NET_CRYPTO_H 25#define NET_CRYPTO_H
26 26
27#include <pthread.h>
28#include "DHT.h" 27#include "DHT.h"
29#include "LAN_discovery.h" 28#include "LAN_discovery.h"
30#include "TCP_connection.h" 29#include "TCP_connection.h"
31#include "logger.h" 30#include "logger.h"
31#include <pthread.h>
32 32
33#define CRYPTO_CONN_NO_CONNECTION 0 33#define CRYPTO_CONN_NO_CONNECTION 0
34#define CRYPTO_CONN_COOKIE_REQUESTING 1 //send cookie request packets 34#define CRYPTO_CONN_COOKIE_REQUESTING 1 //send cookie request packets