Update some field accesses to new structures

This commit is contained in:
Hisham Muhammad 2018-04-06 12:34:57 -03:00
parent 9b4bdfcb3e
commit 63e1417b8c
3 changed files with 3 additions and 3 deletions

View File

@ -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);

2
htop.c
View File

@ -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);

View File

@ -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