mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-04 06:06:17 +00:00
ipc: Use correct cast
This commit is contained in:
parent
2ffaf7fd46
commit
bc83130354
|
@ -111,7 +111,7 @@ client_loop(volatile struct ipc_client_state *ics)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check the first 4 bytes of the message and dispatch.
|
// 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);
|
xrt_result_t result = ipc_dispatch(ics, ipc_command);
|
||||||
if (result != XRT_SUCCESS) {
|
if (result != XRT_SUCCESS) {
|
||||||
IPC_ERROR(ics->server, "During packet handling, disconnecting client.");
|
IPC_ERROR(ics->server, "During packet handling, disconnecting client.");
|
||||||
|
|
|
@ -515,7 +515,7 @@ init_all(struct ipc_server *s)
|
||||||
u_var_add_root(s, "IPC Server", false);
|
u_var_add_root(s, "IPC Server", false);
|
||||||
u_var_add_log_level(s, &s->log_level, "Log level");
|
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, &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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue