summaryrefslogtreecommitdiffstats
path: root/netbsd
diff options
context:
space:
mode:
authorfraggerfox <santhosh.raju@gmail.com>2024-01-01 13:47:17 +0100
committerBenBE <BenBE@geshi.org>2024-01-09 09:17:09 +0100
commit615d489597bef01d9135bb37f45ac5d346590bf4 (patch)
tree2e827b44f7ea765a3a8c699adf067103ddd6c813 /netbsd
parent71021b2d8beb98877fb4646db7e6faf926e30204 (diff)
Fix build in NetBSD.
Diffstat (limited to 'netbsd')
-rw-r--r--netbsd/NetBSDMachine.c10
-rw-r--r--netbsd/NetBSDProcess.c2
-rw-r--r--netbsd/NetBSDProcessTable.c2
3 files changed, 7 insertions, 7 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);
}
}
diff --git a/netbsd/NetBSDProcess.c b/netbsd/NetBSDProcess.c
index 3faa25a2..f58cdf2c 100644
--- a/netbsd/NetBSDProcess.c
+++ b/netbsd/NetBSDProcess.c
@@ -237,7 +237,7 @@ static void NetBSDProcess_rowWriteField(const Row* super, RichString* str, Proce
switch (field) {
// add NetBSD-specific fields here
default:
- Process_writeField(np->super, str, field);
+ Process_writeField(&np->super, str, field);
return;
}
diff --git a/netbsd/NetBSDProcessTable.c b/netbsd/NetBSDProcessTable.c
index f09a3a4b..6608b92f 100644
--- a/netbsd/NetBSDProcessTable.c
+++ b/netbsd/NetBSDProcessTable.c
@@ -151,7 +151,7 @@ static double getpcpu(const NetBSDMachine* nhost, const struct kinfo_proc2* kp)
}
static void NetBSDProcessTable_scanProcs(NetBSDProcessTable* this) {
- const Machine* host = this->super.host;
+ const Machine* host = this->super.super.host;
const NetBSDMachine* nhost = (const NetBSDMachine*) host;
const Settings* settings = host->settings;
bool hideKernelThreads = settings->hideKernelThreads;

© 2014-2024 Faster IT GmbH | imprint | privacy policy