]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
text-utils: make pointer arrays const
authorMax Kellermann <max.kellermann@gmail.com>
Mon, 18 Nov 2024 11:33:12 +0000 (12:33 +0100)
committerMax Kellermann <max.kellermann@gmail.com>
Mon, 18 Nov 2024 11:35:59 +0000 (12:35 +0100)
text-utils/hexdump-conv.c

index bd697098410c9177c5b76e32854e33276e0d4464..f735c39a703f63e397f48884156e5d729c7a5c03 100644 (file)
@@ -87,7 +87,7 @@ strpr:                *pr->cchar = 's';
 void
 conv_u(struct hexdump_pr *pr, u_char *p)
 {
-       static const char *list[] = {
+       static const char *const list[] = {
                "nul", "soh", "stx", "etx", "eot", "enq", "ack", "bel",
                 "bs",  "ht",  "lf",  "vt",  "ff",  "cr",  "so",  "si",
                "dle", "dc1", "dc2", "dc3", "dc4", "nak", "syn", "etb",