summaryrefslogtreecommitdiffstats
path: root/openbsd
diff options
context:
space:
mode:
authorNathan Scott <nathans@redhat.com>2023-08-30 13:19:46 +1000
committerNathan Scott <nathans@redhat.com>2023-08-30 13:19:46 +1000
commitf4e4f78b1c410ef9e79cad3e8fece61cccca0588 (patch)
treef84d0dfe36880efb628682a838527aa14da8eca1 /openbsd
parenta9740fad7c0452b80b7c9812fdc2edee1feacba4 (diff)
Fix some OpenBSD build fallout from struct Machine changeset
Cherry-picked build-relevant part of #1277
Diffstat (limited to 'openbsd')
-rw-r--r--openbsd/OpenBSDMachine.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsd/OpenBSDMachine.c b/openbsd/OpenBSDMachine.c
index e8ff9232..177e7d29 100644
--- a/openbsd/OpenBSDMachine.c
+++ b/openbsd/OpenBSDMachine.c
@@ -129,7 +129,7 @@ void Machine_delete(Machine* super) {
}
static void OpenBSDMachine_scanMemoryInfo(OpenBSDMachine* this) {
- Machine* host = &this->super;
+ Machine* super = &this->super;
const int uvmexp_mib[] = { CTL_VM, VM_UVMEXP };
struct uvmexp uvmexp;
size_t size_uvmexp = sizeof(uvmexp);
@@ -230,7 +230,7 @@ static void kernelCPUTimesToHtop(const u_int64_t* times, CPUData* cpu) {
}
static void OpenBSDMachine_scanCPUTime(OpenBSDMachine* this) {
- Machine* host = &this->super;
+ Machine* super = &this->super;
u_int64_t kernelTimes[CPUSTATES] = {0};
u_int64_t avg[CPUSTATES] = {0};

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