From 3e624369cb76cd18e728ebc9f3f95177e753c0a7 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Thu, 23 Jun 2016 18:11:35 +0300 Subject: [PATCH] tests: Mark some module test arrays static These are not used outside the source code file. Signed-off-by: Jouni Malinen --- src/crypto/crypto_module_tests.c | 4 ++-- src/wps/wps_module_tests.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/crypto/crypto_module_tests.c b/src/crypto/crypto_module_tests.c index 087953b6e..7bae76162 100644 --- a/src/crypto/crypto_module_tests.c +++ b/src/crypto/crypto_module_tests.c @@ -1266,7 +1266,7 @@ static int test_sha1(void) } -const struct { +static const struct { char *data; u8 hash[32]; } tests[] = { @@ -1290,7 +1290,7 @@ const struct { } }; -const struct hmac_test { +static const struct hmac_test { u8 key[80]; size_t key_len; u8 data[128]; diff --git a/src/wps/wps_module_tests.c b/src/wps/wps_module_tests.c index 350630768..9c945b156 100644 --- a/src/wps/wps_module_tests.c +++ b/src/wps/wps_module_tests.c @@ -17,7 +17,7 @@ struct wps_attr_parse_test { int extra; }; -const struct wps_attr_parse_test wps_attr_parse_test_cases[] = { +static const struct wps_attr_parse_test wps_attr_parse_test_cases[] = { /* Empty message */ { "", 0, 0 }, /* Truncated attribute header */