From f2c4949707f6a3b23f55f44c9182bfb18a78f1b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Mon, 6 Mar 2023 16:50:47 +0100 Subject: [PATCH] selinux: use type safe function pointer assignment --- lib/selinux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/selinux.c b/lib/selinux.c index 5e3ef1a3..6eb2894c 100644 --- a/lib/selinux.c +++ b/lib/selinux.c @@ -188,7 +188,7 @@ int check_selinux_permit (const char *perm_name) return 0; } - selinux_set_callback (SELINUX_CB_LOG, (union selinux_callback) selinux_log_cb); + selinux_set_callback (SELINUX_CB_LOG, (union selinux_callback) { .func_log = selinux_log_cb }); if (getprevcon_raw (&user_context_raw) != 0) { fprintf (shadow_logfd,