/[baselayout]/trunk/src/runscript.c
Gentoo

Diff of /trunk/src/runscript.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2698 Revision 2703
78 * FIXME: the below code generates the warning 78 * FIXME: the below code generates the warning
79 * ISO C forbids assignment between function pointer and 'void *' 79 * ISO C forbids assignment between function pointer and 'void *'
80 * which sucks ass 80 * which sucks ass
81 * http://www.opengroup.org/onlinepubs/009695399/functions/dlsym.html 81 * http://www.opengroup.org/onlinepubs/009695399/functions/dlsym.html
82 */ 82 */
83 selinux_run_init_old = dlsym (lib_handle, "selinux_runscript"); 83 selinux_run_init_old = (void (*)(void)) dlsym (lib_handle, "selinux_runscript");
84 selinux_run_init_new = dlsym (lib_handle, "selinux_runscript2"); 84 selinux_run_init_new = (void (*)(int, char **)) dlsym (lib_handle, "selinux_runscript2");
85 85
86 /* Use new run_init if it rc_exists, else fall back to old */ 86 /* Use new run_init if it rc_exists, else fall back to old */
87 if (selinux_run_init_new) 87 if (selinux_run_init_new)
88 selinux_run_init_new (argc, argv); 88 selinux_run_init_new (argc, argv);
89 else if (selinux_run_init_old) 89 else if (selinux_run_init_old)

Legend:
Removed from v.2698  
changed lines
  Added in v.2703

  ViewVC Help
Powered by ViewVC 1.1.20