From 0d64ca92627a42f78dc980ec53081eeadd49b262 Mon Sep 17 00:00:00 2001 From: Benny Baumann Date: Sun, 1 Nov 2020 01:49:54 +0100 Subject: Wrap inline structure definitions --- linux/IOPriorityPanel.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'linux/IOPriorityPanel.c') diff --git a/linux/IOPriorityPanel.c b/linux/IOPriorityPanel.c index cd4b2e60..bd84241e 100644 --- a/linux/IOPriorityPanel.c +++ b/linux/IOPriorityPanel.c @@ -21,12 +21,13 @@ 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); } - - static const 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