From 632f779685384b67b7394b90bd223655d193156f Mon Sep 17 00:00:00 2001 From: tb <> Date: Fri, 2 Sep 2022 13:21:32 +0000 Subject: Make test tables static const and fix a style nit --- src/regress/lib/libcrypto/sha/sha_test.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/regress/lib/libcrypto/sha/sha_test.c b/src/regress/lib/libcrypto/sha/sha_test.c index 0d823a3db8..05806dbcc1 100644 --- a/src/regress/lib/libcrypto/sha/sha_test.c +++ b/src/regress/lib/libcrypto/sha/sha_test.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sha_test.c,v 1.2 2022/09/02 11:13:34 tb Exp $ */ +/* $OpenBSD: sha_test.c,v 1.3 2022/09/02 13:21:32 tb Exp $ */ /* * Copyright (c) 2022 Joshua Sing * @@ -28,7 +28,7 @@ struct sha_test { const uint8_t out[EVP_MAX_MD_SIZE]; }; -struct sha_test sha_tests[] = { +static const struct sha_test sha_tests[] = { /* SHA-1 */ { .algorithm = NID_sha1, @@ -305,15 +305,14 @@ struct sha_test sha_tests[] = { }, }; -struct sha_repetition_test -{ +struct sha_repetition_test { const int algorithm; const uint8_t in; const size_t in_repetitions; const uint8_t out[EVP_MAX_MD_SIZE]; }; -struct sha_repetition_test sha_repetition_tests[] = { +static const struct sha_repetition_test sha_repetition_tests[] = { /* SHA-1 */ { .algorithm = NID_sha1, -- cgit v1.2.3-55-g6feb