tree-wide: constify a few static string tables
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
ebfb1b5724
commit
b82f71c7ff
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user