From f4e4f78b1c410ef9e79cad3e8fece61cccca0588 Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Wed, 30 Aug 2023 13:19:46 +1000 Subject: Fix some OpenBSD build fallout from struct Machine changeset Cherry-picked build-relevant part of #1277 --- openbsd/OpenBSDMachine.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'openbsd') 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}; -- cgit v1.2.3