summaryrefslogtreecommitdiffstats
path: root/MainPanel.c
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2020-10-31 23:28:02 +0100
committerBenny Baumann <BenBE@geshi.org>2020-11-02 22:15:01 +0100
commit61e14d4bb25268593019e6df3eb02264b4ac8e0e (patch)
tree910b68d9a5ee1c4d25b2cf3ee24abaaf3e6a096b /MainPanel.c
parentb23f8235e28472c410dcb00893e0e3d403892673 (diff)
Spacing around operators
Diffstat (limited to 'MainPanel.c')
-rw-r--r--MainPanel.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/MainPanel.c b/MainPanel.c
index 05a55e60..9322fe02 100644
--- a/MainPanel.c
+++ b/MainPanel.c
@@ -36,7 +36,7 @@ void MainPanel_updateTreeFunctions(MainPanel* this, bool mode) {
void MainPanel_pidSearch(MainPanel* this, int ch) {
Panel* super = (Panel*) this;
- pid_t pid = ch-48 + this->pidSearch;
+ pid_t pid = ch - 48 + this->pidSearch;
for (int i = 0; i < Panel_size(super); i++) {
Process* p = (Process*) Panel_get(super, i);
if (p && p->pid == pid) {
@@ -153,7 +153,9 @@ bool MainPanel_foreachProcess(MainPanel* this, MainPanel_ForeachProcessFn fn, Ar
}
if (!anyTagged) {
Process* p = (Process*) Panel_getSelected(super);
- if (p) ok = fn(p, arg) && ok;
+ if (p) {
+ ok &= fn(p, arg);
+ }
}
if (wasAnyTagged)
*wasAnyTagged = anyTagged;

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