diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-07-03 10:26:06 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-07-03 10:26:06 -0400 |
commit | c75215c23ad9e3a3142ce65a06a6231425f0e30e (patch) | |
tree | 08673dff22c83935b17bdd00567c94bc09aa9e0f /src/test/test_crypto.c | |
parent | e2a94dc48147c9bad1f09f8b14df3bec0e3f5e94 (diff) | |
download | tor-c75215c23ad9e3a3142ce65a06a6231425f0e30e.tar.gz tor-c75215c23ad9e3a3142ce65a06a6231425f0e30e.zip |
Clean up various things that broke with our stdint.h changes
Casting before printf was necessary; now it's not so smart.
We don't have SIZEOF_UINT8_T any more.
Diffstat (limited to 'src/test/test_crypto.c')
-rw-r--r-- | src/test/test_crypto.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/test/test_crypto.c b/src/test/test_crypto.c index e8a2efe597..ecbc6745d7 100644 --- a/src/test/test_crypto.c +++ b/src/test/test_crypto.c @@ -2862,12 +2862,12 @@ crypto_rand_check_failure_mode_identical(void) { /* just in case the buffer size isn't a multiple of sizeof(int64_t) */ #define FAILURE_MODE_BUFFER_SIZE_I64 \ - (FAILURE_MODE_BUFFER_SIZE/SIZEOF_INT64_T) + (FAILURE_MODE_BUFFER_SIZE/8) #define FAILURE_MODE_BUFFER_SIZE_I64_BYTES \ - (FAILURE_MODE_BUFFER_SIZE_I64*SIZEOF_INT64_T) + (FAILURE_MODE_BUFFER_SIZE_I64*8) #if FAILURE_MODE_BUFFER_SIZE_I64 < 2 -#error FAILURE_MODE_BUFFER_SIZE needs to be at least 2*SIZEOF_INT64_T +#error FAILURE_MODE_BUFFER_SIZE needs to be at least 2*8 #endif int64_t buf[FAILURE_MODE_BUFFER_SIZE_I64]; @@ -3063,4 +3063,3 @@ struct testcase_t crypto_tests[] = { { "failure_modes", test_crypto_failure_modes, TT_FORK, NULL, NULL }, END_OF_TESTCASES }; - |