aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test-md4.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-10-26 14:00:57 (GMT)
committerJouni Malinen <j@w1.fi>2013-10-26 14:49:05 (GMT)
commite7ecab4a3b8bc5696ee6d9779bc9f9a1f8b4b6ed (patch)
tree85908522f34532000904ebcc47c331e7f0dfd942 /tests/test-md4.c
parent39044a703348e50d9d35053baf1b9ba3f53efdbf (diff)
downloadhostap-e7ecab4a3b8bc5696ee6d9779bc9f9a1f8b4b6ed.zip
hostap-e7ecab4a3b8bc5696ee6d9779bc9f9a1f8b4b6ed.tar.gz
hostap-e7ecab4a3b8bc5696ee6d9779bc9f9a1f8b4b6ed.tar.bz2
Use ARRAY_SIZE() macro
Replace the common sizeof(a)/sizeof(a[0]) constructions with a more readable version. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'tests/test-md4.c')
-rw-r--r--tests/test-md4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-md4.c b/tests/test-md4.c
index 903fd10..e3e63ed 100644
--- a/tests/test-md4.c
+++ b/tests/test-md4.c
@@ -61,7 +61,7 @@ int main(int argc, char *argv[])
size_t len[2];
int errors = 0;
- for (i = 0; i < sizeof(tests) / sizeof(tests[0]); i++) {
+ for (i = 0; i < ARRAY_SIZE(tests); i++) {
printf("MD4 test case %d:", i);
addr[0] = (u8 *) tests[i].data;