]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Mark some module test arrays static
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 23 Jun 2016 15:11:35 +0000 (18:11 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 23 Jun 2016 15:11:35 +0000 (18:11 +0300)
These are not used outside the source code file.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/crypto/crypto_module_tests.c
src/wps/wps_module_tests.c

index 087953b6e896694727380983a08700772b25e48d..7bae7616257a049b3c11eb31cc092c80d7086ccc 100644 (file)
@@ -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];
index 350630768be4b07f801cf10e2032b340e61e6bac..9c945b156f9e11d43b6ee1dac0cff7b509b12e0c 100644 (file)
@@ -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 */