Pass the computed enum of the correct type to dbg_setup_watchpoint.

The two sets of constants happen to have the same values, so this is
just a cosmetic fix.
This commit is contained in:
John Baldwin 2022-04-08 17:25:14 -07:00
parent 0ed1db1aad
commit 533b6ecfdc

View File

@ -345,7 +345,7 @@ kdb_cpu_set_watchpoint(vm_offset_t addr, size_t size, int access)
return (EINVAL);
}
return (dbg_setup_watchpoint(addr, size, (enum dbg_access_t)access));
return (dbg_setup_watchpoint(addr, size, dbg_access));
}
int