aboutsummaryrefslogtreecommitdiff
path: root/src/runscript.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-05-14 19:50:13 +0000
committerRoy Marples <roy@marples.name>2007-05-14 19:50:13 +0000
commitf3888d76138c9f347e118e3942d5a1dd49b351ff (patch)
treeb2c20c5d6643a050a088595bc74448ecfa2f86a1 /src/runscript.c
parentd0308aaecd1cb2f1c620a742f2fbaee00cb03c04 (diff)
Implement FreeBSD's dlfunc function to avoid ISO warnings on dlsym - thanks to drizztbsd for find public domain code :)
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 ecbe34cc..82484f13 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 = (void (*)(void)) dlsym (lib_handle, "selinux_runscript");
- selinux_run_init_new = (void (*)(int, char **)) dlsym (lib_handle, "selinux_runscript2");
+ selinux_run_init_old = (void (*)(void)) dlfunc (lib_handle, "selinux_runscript");
+ selinux_run_init_new = (void (*)(int, char **)) dlfunc (lib_handle, "selinux_runscript2");
/* Use new run_init if it rc_exists, else fall back to old */
if (selinux_run_init_new)