From e9531e3b4f5013eb912d4081e74682aa84f01870 Mon Sep 17 00:00:00 2001 From: octo Date: Fri, 21 Apr 2006 14:50:35 +0000 Subject: [PATCH] Fix this (need to cast void-pointer to function-pointer to make Sun-cc happy): "plugin.c", line 132: warning: assignment type mismatch: pointer to function(void) returning void "=" pointer to void --- src/plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugin.c b/src/plugin.c index 570b6a22..2f521570 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -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 ()); -- 2.11.0