diff options
author | Roy Marples <roy@marples.name> | 2007-05-14 17:05:55 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-05-14 17:05:55 +0000 |
commit | d0308aaecd1cb2f1c620a742f2fbaee00cb03c04 (patch) | |
tree | 5dab3c6c2afa6ca6f43ea9ba21ec0b3e379a9599 /src/runscript.c | |
parent | b2e832418485f177804b42ff02c115db0bdbd50f (diff) |
Use correct function casts. Use dlfunc where available to remove ISO warnings :)
Diffstat (limited to 'src/runscript.c')
-rw-r--r-- | src/runscript.c | 4 |
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) |