ipc: Use correct cast

This commit is contained in:
Jakob Bornecrantz 2022-11-20 22:09:53 +00:00
parent 2ffaf7fd46
commit bc83130354
2 changed files with 2 additions and 2 deletions

View file

@ -111,7 +111,7 @@ client_loop(volatile struct ipc_client_state *ics)
}
// Check the first 4 bytes of the message and dispatch.
ipc_command_t *ipc_command = (uint32_t *)buf;
ipc_command_t *ipc_command = (ipc_command_t *)buf;
xrt_result_t result = ipc_dispatch(ics, ipc_command);
if (result != XRT_SUCCESS) {
IPC_ERROR(ics->server, "During packet handling, disconnecting client.");

View file

@ -515,7 +515,7 @@ init_all(struct ipc_server *s)
u_var_add_root(s, "IPC Server", false);
u_var_add_log_level(s, &s->log_level, "Log level");
u_var_add_bool(s, &s->exit_on_disconnect, "exit_on_disconnect");
u_var_add_bool(s, (void *)&s->running, "running");
u_var_add_bool(s, (bool *)&s->running, "running");
return 0;
}