From d5faf643742ae047e327d41910232791bc7bca41 Mon Sep 17 00:00:00 2001 From: Richard Date: Sat, 22 Jul 2017 21:41:19 -0500 Subject: 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. --- linux/IOPriorityPanel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linux') 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 } -- cgit v1.2.3