From 0ea32b331ffbf58f123d576608200ea8c3ec3ee2 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 18 Nov 2024 12:33:12 +0100 Subject: [PATCH] text-utils: make pointer arrays const --- text-utils/hexdump-conv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/text-utils/hexdump-conv.c b/text-utils/hexdump-conv.c index bd6970984..f735c39a7 100644 --- a/text-utils/hexdump-conv.c +++ b/text-utils/hexdump-conv.c @@ -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", -- 2.47.3