mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-14 13:04:35 +03:00
Merge fixes
This commit is contained in:
@ -27,15 +27,15 @@ typedef struct LinuxProcess_ {
|
||||
|
||||
}*/
|
||||
|
||||
LinuxProcess* LinuxProcess_new(Settings* settings, ProcessList* pl) {
|
||||
LinuxProcess* LinuxProcess_new(ProcessList* pl) {
|
||||
LinuxProcess* this = calloc(sizeof(LinuxProcess), 1);
|
||||
Process_init(&this->super, settings, pl);
|
||||
Object_setClass(this, Class(Process));
|
||||
Process_init(&this->super, pl);
|
||||
return this;
|
||||
}
|
||||
|
||||
void LinuxProcess_delete(Object* cast) {
|
||||
LinuxProcess* this = (LinuxProcess*) this;
|
||||
Object_setClass(this, Class(Process));
|
||||
Process_done((Process*)cast);
|
||||
free(this);
|
||||
}
|
||||
|
@ -20,7 +20,7 @@ typedef struct LinuxProcess_ {
|
||||
#define Process_delete LinuxProcess_delete
|
||||
|
||||
|
||||
LinuxProcess* LinuxProcess_new(Settings* settings);
|
||||
LinuxProcess* LinuxProcess_new(ProcessList* pl);
|
||||
|
||||
void LinuxProcess_delete(Object* cast);
|
||||
|
||||
|
@ -465,7 +465,7 @@ static bool LinuxProcessList_processEntries(ProcessList* this, const char* dirna
|
||||
process = existingProcess;
|
||||
assert(process->pid == pid);
|
||||
} else {
|
||||
process = (Process*) LinuxProcess_new(settings, this);
|
||||
process = (Process*) LinuxProcess_new(this);
|
||||
assert(process->comm == NULL);
|
||||
process->pid = pid;
|
||||
process->tgid = parent ? parent->pid : pid;
|
||||
|
Reference in New Issue
Block a user