From: Eugene Syromiatnikov Date: Tue, 5 Aug 2025 13:26:42 +0000 (+0200) Subject: test/bioprinttest.c: constify test vectors X-Git-Tag: openssl-3.6.0-alpha1~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f5bb94918f28ad939398e7a739cce68c2b191da5;p=thirdparty%2Fopenssl.git test/bioprinttest.c: constify test vectors Signed-off-by: Eugene Syromiatnikov Reviewed-by: Saša Nedvědický Reviewed-by: Neil Horman (Merged from https://github.com/openssl/openssl/pull/28177) --- diff --git a/test/bioprinttest.c b/test/bioprinttest.c index a9dcdb02c9b..38e6b403ca5 100644 --- a/test/bioprinttest.c +++ b/test/bioprinttest.c @@ -19,7 +19,7 @@ static int justprint = 0; -static char *fpexpected[][11][5] = { +static const char * const fpexpected[][11][5] = { { /* 0.00 */ { "0.0000e+00", "0.0000", "0", "0.0000E+00", "0" }, /* 0.01 */ { "6.7000e-01", "0.6700", "0.67", "6.7000E-01", "0.67" }, @@ -119,7 +119,7 @@ typedef struct z_data_st { const char *expected; } z_data; -static z_data zu_data[] = { +static const z_data zu_data[] = { { SIZE_MAX, "%zu", (sizeof(size_t) == 4 ? "4294967295" : sizeof(size_t) == 8 ? "18446744073709551615" : "") }, @@ -153,7 +153,7 @@ typedef struct j_data_st { const char *expected; } j_data; -static j_data jf_data[] = { +static const j_data jf_data[] = { { 0xffffffffffffffffULL, "%ju", "18446744073709551615" }, { 0xffffffffffffffffULL, "%jx", "ffffffffffffffff" }, { 0x8000000000000000ULL, "%ju", "9223372036854775808" }, @@ -184,7 +184,7 @@ typedef struct pw_st { const char *w; } pw; -static pw pw_params[] = { +static const pw pw_params[] = { { 4, "" }, { 5, "" }, { 4, "12" },