]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsfd: add const modifier
authorThomas Weißschuh <thomas@t-8ch.de>
Fri, 14 Apr 2023 10:48:59 +0000 (12:48 +0200)
committerMasatake YAMATO <yamato@redhat.com>
Sun, 23 Jul 2023 17:00:36 +0000 (02:00 +0900)
(The log is edited by @masatake.)

misc-utils/lsfd-sock-xinfo.c

index 5869828324a4e9a6f79c3ec9cbdbeb00ad4e47bd..5410d149530580078a8c87c5c48673915e34a35e 100644 (file)
@@ -549,7 +549,7 @@ enum l4_state {
 
 static const char *l4_decode_state(enum l4_state st)
 {
-       const char * table [] = {
+       const char * const table [] = {
                [TCP_ESTABLISHED] = "established",
                [TCP_SYN_SENT] = "syn-sent",
                [TCP_SYN_RECV] = "syn-recv",