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

index 913ae32ebef89825885e96941ca105d0245045ea..652b14ed3c0fae449d28f1ac798e791f4d307158 100644 (file)
@@ -767,7 +767,7 @@ static int parse_line_header(struct fdisk_script *dp, char *s)
 {
        size_t i;
        char *name, *value;
-       static const char *supported[] = {
+       static const char *const supported[] = {
                "label", "unit", "label-id", "device", "grain",
                "first-lba", "last-lba", "table-length", "sector-size"
        };