diff options
author | Benny Baumann <BenBE@geshi.org> | 2023-05-09 15:11:11 +0200 |
---|---|---|
committer | Benny Baumann <BenBE@geshi.org> | 2023-05-09 15:17:12 +0200 |
commit | e40daf929e8416f8ca272fd286156a0639bb1dbd (patch) | |
tree | 5227c2924733432f5580eb83f5aa4452cb538d92 | |
parent | ab0f68c20f2e77ef418a19b80222136a1ba885be (diff) |
Build fixes for DragonFlyBSD
-rw-r--r-- | dragonflybsd/DragonFlyBSDMachine.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dragonflybsd/DragonFlyBSDMachine.c b/dragonflybsd/DragonFlyBSDMachine.c index fc7eb3b0..6831fa3d 100644 --- a/dragonflybsd/DragonFlyBSDMachine.c +++ b/dragonflybsd/DragonFlyBSDMachine.c @@ -45,7 +45,7 @@ Machine* Machine_new(UsersTable* usersTable, uid_t userId) { DragonFlyBSDMachine* this = xCalloc(1, sizeof(DragonFlyBSDMachine)); Machine* super = &this->super; - Machine_init(this, usersTable, userId); + Machine_init(super, usersTable, userId); // physical memory in system: hw.physmem // physical page size: hw.pagesize @@ -119,9 +119,9 @@ Machine* Machine_new(UsersTable* usersTable, uid_t userId) { } void Machine_delete(Machine* super) { - const DragonFlyBSDMachine* this = (DragonFlyBSDProcessList*) super; + const DragonFlyBSDMachine* this = (const DragonFlyBSDMachine*) super; - Machine_done(this); + Machine_done(super); if (this->kd) { kvm_close(this->kd); |