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
a8f45d57
Commit
a8f45d57
authored
Nov 13, 2006
by
Hisham Muhammad
Browse files
Sanity cleanup.
parent
9076b9ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Process.c
View file @
a8f45d57
...
@@ -126,6 +126,7 @@ Process* Process_new(struct ProcessList_ *pl) {
...
@@ -126,6 +126,7 @@ Process* Process_new(struct ProcessList_ *pl) {
Object_setClass
(
this
,
PROCESS_CLASS
);
Object_setClass
(
this
,
PROCESS_CLASS
);
((
Object
*
)
this
)
->
display
=
Process_display
;
((
Object
*
)
this
)
->
display
=
Process_display
;
((
Object
*
)
this
)
->
delete
=
Process_delete
;
((
Object
*
)
this
)
->
delete
=
Process_delete
;
this
->
pid
=
0
;
this
->
pl
=
pl
;
this
->
pl
=
pl
;
this
->
tag
=
false
;
this
->
tag
=
false
;
this
->
updated
=
false
;
this
->
updated
=
false
;
...
@@ -141,6 +142,7 @@ Process* Process_clone(Process* this) {
...
@@ -141,6 +142,7 @@ Process* Process_clone(Process* this) {
Process
*
clone
=
malloc
(
sizeof
(
Process
));
Process
*
clone
=
malloc
(
sizeof
(
Process
));
memcpy
(
clone
,
this
,
sizeof
(
Process
));
memcpy
(
clone
,
this
,
sizeof
(
Process
));
this
->
comm
=
NULL
;
this
->
comm
=
NULL
;
this
->
pid
=
0
;
return
clone
;
return
clone
;
}
}
...
...
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