tree-wide: constify a few static string tables

This commit is contained in:
Lennart Poettering
2019-03-25 14:04:34 +01:00
committed by Zbigniew Jędrzejewski-Szmek
parent ebfb1b5724
commit b82f71c7ff
11 changed files with 22 additions and 15 deletions
+1 -1
View File
@@ -2871,7 +2871,7 @@ bool fd_is_cgroup_fs(int fd) {
return is_cgroup_fs(&s);
}
static const char *cgroup_controller_table[_CGROUP_CONTROLLER_MAX] = {
static const char *const cgroup_controller_table[_CGROUP_CONTROLLER_MAX] = {
[CGROUP_CONTROLLER_CPU] = "cpu",
[CGROUP_CONTROLLER_CPUACCT] = "cpuacct",
[CGROUP_CONTROLLER_IO] = "io",