summaryrefslogtreecommitdiff
path: root/toxcore/crypto_core.api.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.api.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.api.h')
-rw-r--r--toxcore/crypto_core.api.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/crypto_core.api.h b/toxcore/crypto_core.api.h
index 44f541fc..0db3a420 100644
--- a/toxcore/crypto_core.api.h
+++ b/toxcore/crypto_core.api.h
@@ -69,7 +69,7 @@ const CRYPTO_SHA512_SIZE = 64;
69 * "aaaa" and "baaa" also takes 4 time. With a regular `memcmp`, the latter may 69 * "aaaa" and "baaa" also takes 4 time. With a regular `memcmp`, the latter may
70 * take 1 time, because it immediately knows that the two strings are not equal. 70 * take 1 time, because it immediately knows that the two strings are not equal.
71 */ 71 */
72static int32_t crypto_memcmp(const void *p1, const void *p2, size_t length); 72static int32_t crypto_memcmp(const uint8_t *p1, const uint8_t *p2, size_t length);
73 73
74/** 74/**
75 * A `bzero`-like function which won't be optimised away by the compiler. Some 75 * A `bzero`-like function which won't be optimised away by the compiler. Some