Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
63e1417b
Commit
63e1417b
authored
Apr 06, 2018
by
Hisham Muhammad
Browse files
Update some field accesses to new structures
parent
9b4bdfcb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Action.c
View file @
63e1417b
...
@@ -280,7 +280,7 @@ static Htop_Reaction actionExpandOrCollapse(State* st) {
...
@@ -280,7 +280,7 @@ static Htop_Reaction actionExpandOrCollapse(State* st) {
}
}
static
Htop_Reaction
actionCollapseIntoParent
(
State
*
st
)
{
static
Htop_Reaction
actionCollapseIntoParent
(
State
*
st
)
{
if
(
!
st
->
settings
->
treeView
)
{
if
(
!
st
->
settings
->
ss
->
treeView
)
{
return
HTOP_OK
;
return
HTOP_OK
;
}
}
bool
changed
=
collapseIntoParent
(
st
->
panel
);
bool
changed
=
collapseIntoParent
(
st
->
panel
);
...
...
htop.c
View file @
63e1417b
...
@@ -205,7 +205,7 @@ int main(int argc, char** argv) {
...
@@ -205,7 +205,7 @@ int main(int argc, char** argv) {
if
(
!
flags
.
useColors
)
if
(
!
flags
.
useColors
)
settings
->
colorScheme
=
COLORSCHEME_MONOCHROME
;
settings
->
colorScheme
=
COLORSCHEME_MONOCHROME
;
if
(
flags
.
treeView
)
if
(
flags
.
treeView
)
settings
->
treeView
=
true
;
settings
->
screens
[
0
]
->
treeView
=
true
;
CRT_init
(
settings
->
delay
,
settings
->
colorScheme
);
CRT_init
(
settings
->
delay
,
settings
->
colorScheme
);
...
...
linux/LinuxProcess.c
View file @
63e1417b
...
@@ -186,7 +186,7 @@ typedef struct LinuxProcess_ {
...
@@ -186,7 +186,7 @@ typedef struct LinuxProcess_ {
} LinuxProcess;
} LinuxProcess;
#ifndef Process_isKernelThread
#ifndef Process_isKernelThread
#define Process_isKernelThread(_process) ((LinuxProcess*)(_process)->isKernelThread)
#define Process_isKernelThread(_process) ((
(
LinuxProcess*)(_process)
)
->isKernelThread)
#endif
#endif
#ifndef Process_isUserlandThread
#ifndef Process_isUserlandThread
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment