diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-10-27 11:46:29 +0100 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2020-10-27 18:00:43 +0100 |
commit | ac2b07eddd6f0b7c41b84b71653ca90fd301085f (patch) | |
tree | 0877120c0d42eed27a7f3d29a9fe79803cdd141f /linux/Platform.c | |
parent | 27870bd4deceff8396bbc569927716773b1aea29 (diff) |
Avoid some unnecessary casts and mark some not changing variables const
Diffstat (limited to 'linux/Platform.c')
-rw-r--r-- | linux/Platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/Platform.c b/linux/Platform.c index 43bf84b1..f6f7ba19 100644 --- a/linux/Platform.c +++ b/linux/Platform.c @@ -103,7 +103,7 @@ static Htop_Reaction Platform_actionSetIOPriority(State* st) { void* set = Action_pickFromVector(st, ioprioPanel, 21, true); if (set) { IOPriority ioprio2 = IOPriorityPanel_getIOPriority(ioprioPanel); - bool ok = MainPanel_foreachProcess((MainPanel*)panel, (MainPanel_ForeachProcessFn) LinuxProcess_setIOPriority, (Arg){ .i = ioprio2 }, NULL); + bool ok = MainPanel_foreachProcess((MainPanel*)panel, LinuxProcess_setIOPriority, (Arg){ .i = ioprio2 }, NULL); if (!ok) beep(); } |