X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/a991bd8d3e7fe02dbca0644054bab73c5b75324a..HEAD:/libsyscall/wrappers/mach_bridge_remote_time.c diff --git a/libsyscall/wrappers/mach_bridge_remote_time.c b/libsyscall/wrappers/mach_bridge_remote_time.c index e90846034..1158c2431 100644 --- a/libsyscall/wrappers/mach_bridge_remote_time.c +++ b/libsyscall/wrappers/mach_bridge_remote_time.c @@ -50,7 +50,8 @@ mach_bridge_remote_time(__unused uint64_t local_time) uint64_t now = 0; struct bt_params params = {}; - volatile struct bt_params *commpage_bt_params_p = (struct bt_params *)_COMM_PAGE_REMOTETIME_PARAMS; + COMM_PAGE_SLOT_TYPE(struct bt_params) commpage_bt_params_p = + COMM_PAGE_SLOT(struct bt_params, REMOTETIME_PARAMS); volatile uint64_t *base_local_ts_p = &commpage_bt_params_p->base_local_ts; volatile uint64_t *base_remote_ts_p = &commpage_bt_params_p->base_remote_ts; volatile double *rate_p = &commpage_bt_params_p->rate;