From fdbf355be0be87ce845a3065349c07ebe8f31c38 Mon Sep 17 00:00:00 2001 From: Taylor R Campbell Date: Sun, 28 May 2023 21:11:56 +0000 Subject: [PATCH] ipc/client.c: Make never-modified global ipcstable const. --- lib/ipc/client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ipc/client.c b/lib/ipc/client.c index 39e1b491e..d4d3c0399 100644 --- a/lib/ipc/client.c +++ b/lib/ipc/client.c @@ -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; };