ipc/client.c: Make never-modified global ipcstable const.

This commit is contained in:
Taylor R Campbell
2023-05-28 21:11:56 +00:00
committed by Nico Williams
parent 29b1faaef6
commit fdbf355be0

View File

@@ -520,7 +520,7 @@ struct hipc_ops {
void (*)(void *, int, heim_idata *, heim_icred));
};
struct hipc_ops ipcs[] = {
static const struct hipc_ops ipcs[] = {
#if defined(__APPLE__) && defined(HAVE_GCD)
{ "MACH", mach_init, mach_release, mach_ipc, mach_async },
#endif
@@ -531,7 +531,7 @@ struct hipc_ops ipcs[] = {
};
struct heim_ipc {
struct hipc_ops *ops;
const struct hipc_ops *ops;
void *ctx;
};