summaryrefslogtreecommitdiffstats
path: root/linux/IOPriorityPanel.c
diff options
context:
space:
mode:
authorRichard <rsaxvc@rsaxvc.net>2017-07-22 21:41:19 -0500
committerRichard <rsaxvc@rsaxvc.net>2017-07-22 22:34:30 -0500
commitd5faf643742ae047e327d41910232791bc7bca41 (patch)
tree0b678ca7858690e3898bf3b3268d175719e3aa3b /linux/IOPriorityPanel.c
parent18b3e5d255b580ea31e62889c4c1903d466ab0e6 (diff)
Mark some things as const
Several string pointer arrays pointed to const strings but were not const themselves. A few various structures and arrays were also marked const.
Diffstat (limited to 'linux/IOPriorityPanel.c')
-rw-r--r--linux/IOPriorityPanel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/IOPriorityPanel.c b/linux/IOPriorityPanel.c
index 9e12c755..3085fb02 100644
--- a/linux/IOPriorityPanel.c
+++ b/linux/IOPriorityPanel.c
@@ -19,7 +19,7 @@ Panel* IOPriorityPanel_new(IOPriority currPrio) {
Panel_setHeader(this, "IO Priority:");
Panel_add(this, (Object*) ListItem_new("None (based on nice)", IOPriority_None));
if (currPrio == IOPriority_None) Panel_setSelected(this, 0);
- struct { int klass; const char* name; } classes[] = {
+ static const struct { int klass; const char* name; } classes[] = {
{ .klass = IOPRIO_CLASS_RT, .name = "Realtime" },
{ .klass = IOPRIO_CLASS_BE, .name = "Best-effort" },
{ .klass = 0, .name = NULL }

© 2014-2024 Faster IT GmbH | imprint | privacy policy