diff options
author | fraggerfox <santhosh.raju@gmail.com> | 2024-01-01 13:47:17 +0100 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2024-01-09 09:17:09 +0100 |
commit | 615d489597bef01d9135bb37f45ac5d346590bf4 (patch) | |
tree | 2e827b44f7ea765a3a8c699adf067103ddd6c813 /netbsd/NetBSDMachine.c | |
parent | 71021b2d8beb98877fb4646db7e6faf926e30204 (diff) |
Fix build in NetBSD.
Diffstat (limited to 'netbsd/NetBSDMachine.c')
-rw-r--r-- | netbsd/NetBSDMachine.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/netbsd/NetBSDMachine.c b/netbsd/NetBSDMachine.c index 9c04cdd3..79c50c11 100644 --- a/netbsd/NetBSDMachine.c +++ b/netbsd/NetBSDMachine.c @@ -81,7 +81,7 @@ static void NetBSDMachine_updateCPUcount(NetBSDMachine* this) { } if (value != super->existingCPUs) { - opl->cpuData = xReallocArray(this->cpuData, value + 1, sizeof(CPUData)); + this->cpuData = xReallocArray(this->cpuData, value + 1, sizeof(CPUData)); super->existingCPUs = value; change = true; } @@ -127,7 +127,7 @@ Machine* Machine_new(UsersTable* usersTable, uid_t userId) { CRT_fatalError("kvm_openfiles() failed"); } - return this; + return super; } void Machine_delete(Machine* super) { @@ -268,11 +268,11 @@ static void NetBSDMachine_scanCPUFrequency(NetBSDMachine* this) { void Machine_scan(Machine* super) { NetBSDMachine* this = (NetBSDMachine*) super; - NetBSDProcessTable_scanMemoryInfo(this); - NetBSDProcessTable_scanCPUTime(this); + NetBSDMachine_scanMemoryInfo(this); + NetBSDMachine_scanCPUTime(this); if (super->settings->showCPUFrequency) { - NetBSDProcessTable_scanCPUFrequency(npl); + NetBSDMachine_scanCPUFrequency(this); } } |