aboutsummaryrefslogtreecommitdiff
path: root/src/runscript.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/runscript.c')
-rw-r--r--src/runscript.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runscript.c b/src/runscript.c
index b35474e1..ecbe34cc 100644
--- a/src/runscript.c
+++ b/src/runscript.c
@@ -80,8 +80,8 @@ static void setup_selinux (int argc, char **argv)
* which sucks ass
* http://www.opengroup.org/onlinepubs/009695399/functions/dlsym.html
*/
- selinux_run_init_old = dlsym (lib_handle, "selinux_runscript");
- selinux_run_init_new = dlsym (lib_handle, "selinux_runscript2");
+ selinux_run_init_old = (void (*)(void)) dlsym (lib_handle, "selinux_runscript");
+ selinux_run_init_new = (void (*)(int, char **)) dlsym (lib_handle, "selinux_runscript2");
/* Use new run_init if it rc_exists, else fall back to old */
if (selinux_run_init_new)