tests: Hotspot 2.0 and connect attempt without RSN
[mech_eap.git] / tests / test-md4.c
index 903fd10..e3e63ed 100644 (file)
@@ -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;