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
d7c3dc74
Commit
d7c3dc74
authored
Jun 08, 2015
by
Hisham Muhammad
Browse files
Merge pull request #203 from Lance0312/fix-freebsd-compilation-errors
Fix several FreeBSD compilation errors
parents
f4f6d54f
5a5dc717
Changes
2
Hide whitespace changes
Inline
Side-by-side
freebsd/FreeBSDProcess.h
View file @
d7c3dc74
...
...
@@ -28,6 +28,8 @@ typedef struct FreeBSDProcess_ {
#endif
extern
ProcessClass
FreeBSDProcess_class
;
extern
ProcessFieldData
Process_fields
[];
extern
char
*
Process_pidFormat
;
...
...
@@ -39,9 +41,9 @@ FreeBSDProcess* FreeBSDProcess_new(Settings* settings);
void
Process_delete
(
Object
*
cast
);
void
Process_writeField
(
Process
*
this
,
RichString
*
str
,
ProcessField
field
);
void
FreeBSD
Process_writeField
(
Process
*
this
,
RichString
*
str
,
ProcessField
field
);
long
Process_compare
(
const
void
*
v1
,
const
void
*
v2
);
long
FreeBSD
Process_compare
(
const
void
*
v1
,
const
void
*
v2
);
bool
Process_isThread
(
Process
*
this
);
...
...
freebsd/FreeBSDProcessList.c
View file @
d7c3dc74
...
...
@@ -146,7 +146,7 @@ void ProcessList_goThroughEntries(ProcessList* this) {
struct
kinfo_proc
*
kproc
=
&
kprocs
[
i
];
bool
preExisting
=
false
;
Process
*
proc
=
ProcessList_getProcess
(
this
,
kproc
->
ki_pid
,
&
preExisting
,
(
Process_
n
ew
_fn
)
FreeBSDProcess_new
);
Process
*
proc
=
ProcessList_getProcess
(
this
,
kproc
->
ki_pid
,
&
preExisting
,
(
Process_
N
ew
)
FreeBSDProcess_new
);
FreeBSDProcess
*
fp
=
(
FreeBSDProcess
*
)
proc
;
proc
->
show
=
!
((
hideKernelThreads
&&
Process_isKernelThread
(
proc
))
||
(
hideUserlandThreads
&&
Process_isUserlandThread
(
proc
)));
...
...
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