aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_crypto.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-02-16 12:51:35 -0500
committerNick Mathewson <nickm@torproject.org>2014-02-16 12:51:35 -0500
commite1deb01e5f1a666486690f9e511b3a0af66ed683 (patch)
tree15d030b1211b6ee6dd57838fb9e81a310f7a4107 /src/test/test_crypto.c
parent3dfed0806c833e7bc34796a412925c502474bebf (diff)
downloadtor-e1deb01e5f1a666486690f9e511b3a0af66ed683.tar
tor-e1deb01e5f1a666486690f9e511b3a0af66ed683.tar.gz
mingw fix: Rename a variable in the unit tests
Apparently, MS C is #defining "IN" on us, so we can't name a variable IN. Delightful!
Diffstat (limited to 'src/test/test_crypto.c')
-rw-r--r--src/test/test_crypto.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/test_crypto.c b/src/test/test_crypto.c
index b1252a11d..00b8693b1 100644
--- a/src/test/test_crypto.c
+++ b/src/test/test_crypto.c
@@ -1189,16 +1189,16 @@ test_crypto_siphash(void *arg)
const struct sipkey K = { U64_LITERAL(0x0706050403020100),
U64_LITERAL(0x0f0e0d0c0b0a0908) };
- uint8_t IN[64];
+ uint8_t input[64];
int i, j;
(void)arg;
for (i = 0; i < 64; ++i)
- IN[i] = i;
+ input[i] = i;
for (i = 0; i < 64; ++i) {
- uint64_t r = siphash24(IN, i, &K);
+ uint64_t r = siphash24(input, i, &K);
for (j = 0; j < 8; ++j) {
tt_int_op( (r >> (j*8)) & 0xff, ==, VECTORS[i][j]);
}