diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2023-03-06 16:50:47 +0100 |
---|---|---|
committer | Iker Pedrosa <ikerpedrosam@gmail.com> | 2023-03-20 08:47:52 +0100 |
commit | f2c4949707f6a3b23f55f44c9182bfb18a78f1b4 (patch) | |
tree | 9b604f60eb33c8c737a09e2796cecdb2caad4315 | |
parent | 37bf59067f2a2dc2af676bf78de7ef435db90768 (diff) |
selinux: use type safe function pointer assignment
-rw-r--r-- | lib/selinux.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |