Skip to content

Commit

Permalink
selinux: use type safe function pointer assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
cgzones authored and ikerexxe committed Mar 20, 2023
1 parent 37bf590 commit f2c4949
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/selinux.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f2c4949

Please sign in to comment.