]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
test/bioprinttest.c: constify test vectors
authorEugene Syromiatnikov <esyr@openssl.org>
Tue, 5 Aug 2025 13:26:42 +0000 (15:26 +0200)
committerNeil Horman <nhorman@openssl.org>
Fri, 29 Aug 2025 16:18:30 +0000 (12:18 -0400)
Signed-off-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28177)

test/bioprinttest.c

index a9dcdb02c9b4277e4f46e06827c0c8bbaf902598..38e6b403ca5d7b2cdc081c310c4edfa3d982338f 100644 (file)
@@ -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" },