summaryrefslogtreecommitdiff
path: root/auto_tests/messenger_test.c
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 /auto_tests/messenger_test.c
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 'auto_tests/messenger_test.c')
-rw-r--r--auto_tests/messenger_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/auto_tests/messenger_test.c b/auto_tests/messenger_test.c
index f7dc92d5..8f904ed1 100644
--- a/auto_tests/messenger_test.c
+++ b/auto_tests/messenger_test.c
@@ -14,12 +14,12 @@
14#include "config.h" 14#include "config.h"
15#endif 15#endif
16 16
17#include "../testing/misc_tools.c" // hex_string_to_bin
18#include "../toxcore/Messenger.h"
17#include <check.h> 19#include <check.h>
18#include <stdint.h> 20#include <stdint.h>
19#include <string.h> 21#include <string.h>
20#include <sys/types.h> 22#include <sys/types.h>
21#include "../testing/misc_tools.c" // hex_string_to_bin
22#include "../toxcore/Messenger.h"
23 23
24#include "helpers.h" 24#include "helpers.h"
25 25