aboutsummaryrefslogtreecommitdiff
path: root/tests/tests.h
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2022-06-16 15:02:57 +0300
committerLasse Collin <lasse.collin@tukaani.org>2022-06-16 15:02:57 +0300
commit82e30fed66a89706388a8c15dc954d84e63f38fa (patch)
treef3555152d4d844863ebb3aab0eceb32aace1c017 /tests/tests.h
parentTests: tuktest.h: Add tuktest_error_impl to help with error conditions. (diff)
downloadxz-82e30fed66a89706388a8c15dc954d84e63f38fa.tar.xz
Tests: Use char[][24] array for enum_strings_lzma_ret.
Array of pointers to short strings is a bit pointless here and now it's fully const.
Diffstat (limited to 'tests/tests.h')
-rw-r--r--tests/tests.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tests.h b/tests/tests.h
index 73875dd5..b76a448e 100644
--- a/tests/tests.h
+++ b/tests/tests.h
@@ -33,7 +33,7 @@
// This table and macro allow getting more readable error messages when
// comparing the lzma_ret enumeration values.
-static const char *enum_strings_lzma_ret[] = {
+static const char enum_strings_lzma_ret[][24] = {
"LZMA_OK",
"LZMA_STREAM_END",
"LZMA_NO_CHECK",