summaryrefslogtreecommitdiff
path: root/toxcore/crypto_core.h
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2020-04-09 23:56:19 +0000
committeriphydf <iphydf@users.noreply.github.com>2020-04-16 11:05:08 +0000
commitc08b2fb3e2c3c8e8a5722e7350b61efd6992be45 (patch)
treebc6f5738bb6a948146cedb612cc12abb3e158fb4 /toxcore/crypto_core.h
parent7f9f8045cd6f8d92559cdc9f7d297cf92e960e49 (diff)
Remove tokstyle exemptions from build files.
We put some tokstyle exemptions into the source files themselves, instead. This way we can check some of the code in those files, and more in the future when tokstyle supports more constructs (like apidsl). Also: hacked ping_array.api.h to not emit `_array` as parameter names. We'll need to fix apidsl to do this better. This works for now.
Diffstat (limited to 'toxcore/crypto_core.h')
-rw-r--r--toxcore/crypto_core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/crypto_core.h b/toxcore/crypto_core.h
index 07412e7e..425c3244 100644
--- a/toxcore/crypto_core.h
+++ b/toxcore/crypto_core.h
@@ -83,7 +83,7 @@ uint32_t crypto_sha512_size(void);
83 * "aaaa" and "baaa" also takes 4 time. With a regular `memcmp`, the latter may 83 * "aaaa" and "baaa" also takes 4 time. With a regular `memcmp`, the latter may
84 * take 1 time, because it immediately knows that the two strings are not equal. 84 * take 1 time, because it immediately knows that the two strings are not equal.
85 */ 85 */
86int32_t crypto_memcmp(const void *p1, const void *p2, size_t length); 86int32_t crypto_memcmp(const uint8_t *p1, const uint8_t *p2, size_t length);
87 87
88/** 88/**
89 * A `bzero`-like function which won't be optimised away by the compiler. Some 89 * A `bzero`-like function which won't be optimised away by the compiler. Some