Code

Fix this (need to cast void-pointer to function-pointer to make Sun-cc happy):
authorocto <octo>
Fri, 21 Apr 2006 14:50:35 +0000 (14:50 +0000)
committerocto <octo>
Fri, 21 Apr 2006 14:50:35 +0000 (14:50 +0000)
  "plugin.c", line 132: warning: assignment type mismatch:
    pointer to function(void) returning void "=" pointer to void

src/plugin.c

index 570b6a224701d7ac829a7f44317a2daaa4d6c14f..2f52157082a0d0929428307999bae4551498fb04 100644 (file)
@@ -129,7 +129,7 @@ int plugin_load_file (char *file)
                return (1);
        }
 
-       if ((reg_handle = lt_dlsym (dlh, "module_register")) == NULL)
+       if ((reg_handle = (void (*) (void)) lt_dlsym (dlh, "module_register")) == NULL)
        {
                syslog (LOG_WARNING, "Couldn't find symbol ``module_register'' in ``%s'': %s\n",
                                file, lt_dlerror ());