]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - tests/test-rc4.c
Use ARRAY_SIZE() macro
[thirdparty/hostap.git] / tests / test-rc4.c
index 6ac2ef3cae9b27c6ac562e0f7b11f6364611c99e..99f559274a06069c6dc91a380a06c948065eb2fc 100644 (file)
@@ -198,7 +198,7 @@ static const struct rc4_test_vector tests[] = {
        }
 };
 
-#define NUM_TESTS (sizeof(tests) / sizeof(tests[0]))
+#define NUM_TESTS ARRAY_SIZE(tests)
 
 
 static int run_test(unsigned int i, const u8 *key, size_t key_len,