summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2020-11-01 01:49:54 +0100
committerBenny Baumann <BenBE@geshi.org>2020-11-02 22:15:01 +0100
commit0d64ca92627a42f78dc980ec53081eeadd49b262 (patch)
tree86e9f595d6dc3d661ac3faf964c31c2cd70ae72a
parent45869513bfebba80cc2ab42e4218f68b34b1e6ac (diff)
Wrap inline structure definitions
-rw-r--r--Action.c10
-rw-r--r--linux/IOPriorityPanel.c7
2 files changed, 12 insertions, 5 deletions
diff --git a/Action.c b/Action.c
index 8a6e2cbe..45128fad 100644
--- a/Action.c
+++ b/Action.c
@@ -425,7 +425,10 @@ static Htop_Reaction actionTogglePauseProcessUpdate(State* st) {
return HTOP_REFRESH | HTOP_REDRAW_BAR;
}
-static const struct { const char* key; const char* info; } helpLeft[] = {
+static const struct {
+ const char* key;
+ const char* info;
+} helpLeft[] = {
{ .key = " Arrows: ", .info = "scroll process list" },
{ .key = " Digits: ", .info = "incremental PID search" },
{ .key = " F3 /: ", .info = "incremental name search" },
@@ -444,7 +447,10 @@ static const struct { const char* key; const char* info; } helpLeft[] = {
{ .key = NULL, .info = NULL }
};
-static const struct { const char* key; const char* info; } helpRight[] = {
+static const struct {
+ const char* key;
+ const char* info;
+} helpRight[] = {
{ .key = " Space: ", .info = "tag process" },
{ .key = " c: ", .info = "tag process and its children" },
{ .key = " U: ", .info = "untag all processes" },
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 }

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