summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2018-04-06 12:34:57 -0300
committerHisham Muhammad <hisham@gobolinux.org>2018-04-06 12:34:57 -0300
commit63e1417b8c0689ab32b0a451fc39de1711e17ceb (patch)
tree290218ab88fb16852813ea6b25705715a475986b
parent9b4bdfcb3e8a0f9c6b193098c73e02f9c090f97b (diff)
Update some field accesses to new structures
-rw-r--r--Action.c2
-rw-r--r--htop.c2
-rw-r--r--linux/LinuxProcess.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/Action.c b/Action.c
index f7d7d4da..2483d451 100644
--- a/Action.c
+++ b/Action.c
@@ -280,7 +280,7 @@ static Htop_Reaction actionExpandOrCollapse(State* st) {
}
static Htop_Reaction actionCollapseIntoParent(State* st) {
- if (!st->settings->treeView) {
+ if (!st->settings->ss->treeView) {
return HTOP_OK;
}
bool changed = collapseIntoParent(st->panel);
diff --git a/htop.c b/htop.c
index be01e14c..875cf6e8 100644
--- a/htop.c
+++ b/htop.c
@@ -205,7 +205,7 @@ int main(int argc, char** argv) {
if (!flags.useColors)
settings->colorScheme = COLORSCHEME_MONOCHROME;
if (flags.treeView)
- settings->treeView = true;
+ settings->screens[0]->treeView = true;
CRT_init(settings->delay, settings->colorScheme);
diff --git a/linux/LinuxProcess.c b/linux/LinuxProcess.c
index b2c4838f..4ccba3fe 100644
--- a/linux/LinuxProcess.c
+++ b/linux/LinuxProcess.c
@@ -186,7 +186,7 @@ typedef struct LinuxProcess_ {
} LinuxProcess;
#ifndef Process_isKernelThread
-#define Process_isKernelThread(_process) ((LinuxProcess*)(_process)->isKernelThread)
+#define Process_isKernelThread(_process) (((LinuxProcess*)(_process))->isKernelThread)
#endif
#ifndef Process_isUserlandThread

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