diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-07-16 22:46:02 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-07-21 20:44:26 +0000 |
commit | 7245ac11ef9be2420c8356c12acc79f93ea211bb (patch) | |
tree | e971c5c6e10c2310afe4b2cd80212feac9839f2a /other/fun/sign.c | |
parent | 7c2b95ef5e4ccdae01bd104aa7400294c9ea391b (diff) |
Avoid implementations in .h files or #including .c files.
Also, avoid the need for putting `_XOPEN_SOURCE` in every test file.
Diffstat (limited to 'other/fun/sign.c')
-rw-r--r-- | other/fun/sign.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/other/fun/sign.c b/other/fun/sign.c index 369bc848..007d19a0 100644 --- a/other/fun/sign.c +++ b/other/fun/sign.c | |||
@@ -15,10 +15,12 @@ | |||
15 | * | 15 | * |
16 | * NOTE: The signature is appended to the end of the file. | 16 | * NOTE: The signature is appended to the end of the file. |
17 | */ | 17 | */ |
18 | #include "../../testing/misc_tools.c" // hex_string_to_bin | ||
19 | #include <sodium.h> | 18 | #include <sodium.h> |
20 | #include <string.h> | 19 | #include <string.h> |
21 | 20 | ||
21 | #include "../../testing/misc_tools.h" // hex_string_to_bin | ||
22 | #include "../../toxcore/ccompat.h" | ||
23 | |||
22 | int load_file(char *filename, char **result) | 24 | int load_file(char *filename, char **result) |
23 | { | 25 | { |
24 | int size = 0; | 26 | int size = 0; |