diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-08-24 13:35:48 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-08-24 13:35:48 -0400 |
commit | 9222707e5c55ae7419d998f46aaa903fdeacb68a (patch) | |
tree | bcd033122453c4aa89cba696d8c8ee3a4fe687d4 /src/test/test.c | |
parent | 15be51b41d1a0c7b8743800c40cf60110cfe880f (diff) | |
download | tor-9222707e5c55ae7419d998f46aaa903fdeacb68a.tar.gz tor-9222707e5c55ae7419d998f46aaa903fdeacb68a.zip |
Use the ARRAY_LENGTH macro more consistently.
Diffstat (limited to 'src/test/test.c')
-rw-r--r-- | src/test/test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test.c b/src/test/test.c index 5786f3ca54..f1efc3db03 100644 --- a/src/test/test.c +++ b/src/test/test.c @@ -191,7 +191,7 @@ remove_directory(void) #undef CACHE_GENERATED_KEYS static crypto_pk_t *pregen_keys[5] = {NULL, NULL, NULL, NULL, NULL}; -#define N_PREGEN_KEYS ((int)(sizeof(pregen_keys)/sizeof(pregen_keys[0]))) +#define N_PREGEN_KEYS ARRAY_LENGTH(pregen_keys) /** Generate and return a new keypair for use in unit tests. If we're using * the key cache optimization, we might reuse keys: we only guarantee that |