]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
schedutils: make pointer arrays const
authorMax Kellermann <max.kellermann@gmail.com>
Mon, 18 Nov 2024 11:35:40 +0000 (12:35 +0100)
committerMax Kellermann <max.kellermann@gmail.com>
Mon, 18 Nov 2024 11:36:07 +0000 (12:36 +0100)
schedutils/ionice.c

index e8d39173feb44f0bbf6715527fe52f1985660d1c..6e897ecfbb1812612610f6a3c15b2054b759cd3c 100644 (file)
@@ -53,7 +53,7 @@ enum {
 #define IOPRIO_PRIO_DATA(mask) ((mask) & IOPRIO_PRIO_MASK)
 #define IOPRIO_PRIO_VALUE(class, data) (((class) << IOPRIO_CLASS_SHIFT) | data)
 
-static const char *to_prio[] = {
+static const char *const to_prio[] = {
        [IOPRIO_CLASS_NONE] = "none",
        [IOPRIO_CLASS_RT]   = "realtime",
        [IOPRIO_CLASS_BE]   = "best-effort",