diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2018-04-06 12:34:57 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-04-06 12:34:57 -0300 |
commit | 63e1417b8c0689ab32b0a451fc39de1711e17ceb (patch) | |
tree | 290218ab88fb16852813ea6b25705715a475986b | |
parent | 9b4bdfcb3e8a0f9c6b193098c73e02f9c090f97b (diff) |
Update some field accesses to new structures
-rw-r--r-- | Action.c | 2 | ||||
-rw-r--r-- | htop.c | 2 | ||||
-rw-r--r-- | linux/LinuxProcess.c | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -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); @@ -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 |