Skip to content

Commit

Permalink
Build fixes for DragonFlyBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
BenBE committed May 9, 2023
1 parent ab0f68c commit e40daf9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dragonflybsd/DragonFlyBSDMachine.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit e40daf9

Please sign in to comment.