summaryrefslogtreecommitdiff
path: root/src/common/tortls.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-08-24 13:35:48 -0400
committerNick Mathewson <nickm@torproject.org>2014-08-24 13:35:48 -0400
commit9222707e5c55ae7419d998f46aaa903fdeacb68a (patch)
treebcd033122453c4aa89cba696d8c8ee3a4fe687d4 /src/common/tortls.c
parent15be51b41d1a0c7b8743800c40cf60110cfe880f (diff)
downloadtor-9222707e5c55ae7419d998f46aaa903fdeacb68a.tar.gz
tor-9222707e5c55ae7419d998f46aaa903fdeacb68a.zip
Use the ARRAY_LENGTH macro more consistently.
Diffstat (limited to 'src/common/tortls.c')
-rw-r--r--src/common/tortls.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/tortls.c b/src/common/tortls.c
index 5fe8d81c59..eda10bbe2e 100644
--- a/src/common/tortls.c
+++ b/src/common/tortls.c
@@ -782,8 +782,7 @@ static const cipher_info_t CLIENT_CIPHER_INFO_LIST[] = {
};
/** The length of CLIENT_CIPHER_INFO_LIST and CLIENT_CIPHER_DUMMIES. */
-static const int N_CLIENT_CIPHERS =
- sizeof(CLIENT_CIPHER_INFO_LIST)/sizeof(CLIENT_CIPHER_INFO_LIST[0]);
+static const int N_CLIENT_CIPHERS = ARRAY_LENGTH(CLIENT_CIPHER_INFO_LIST);
#endif
#ifndef V2_HANDSHAKE_CLIENT