From bc831303549af5da559d6000eca84a727a135299 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Sun, 20 Nov 2022 22:09:53 +0000 Subject: [PATCH] ipc: Use correct cast --- src/xrt/ipc/server/ipc_server_per_client_thread.c | 2 +- src/xrt/ipc/server/ipc_server_process.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xrt/ipc/server/ipc_server_per_client_thread.c b/src/xrt/ipc/server/ipc_server_per_client_thread.c index d4e4955a7..ffbb5856d 100644 --- a/src/xrt/ipc/server/ipc_server_per_client_thread.c +++ b/src/xrt/ipc/server/ipc_server_per_client_thread.c @@ -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."); diff --git a/src/xrt/ipc/server/ipc_server_process.c b/src/xrt/ipc/server/ipc_server_process.c index d78bda459..1ffcdc2d3 100644 --- a/src/xrt/ipc/server/ipc_server_process.c +++ b/src/xrt/ipc/server/ipc_server_process.c @@ -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; }