plugins MAINTENANCE conversion warning
Function pointers cannot change their
prototype.
diff --git a/src/plugins.c b/src/plugins.c
index f839428..3b96c3f 100644
--- a/src/plugins.c
+++ b/src/plugins.c
@@ -205,6 +205,12 @@
}
static void
+lyplg_close_cb(void *handle)
+{
+ dlclose(handle);
+}
+
+static void
lyplg_clean_(void)
{
if (--context_refcount) {
@@ -214,7 +220,7 @@
ly_set_erase(&plugins_types, NULL);
ly_set_erase(&plugins_extensions, NULL);
- ly_set_erase(&plugins_handlers, (void(*)(void *))dlclose);
+ ly_set_erase(&plugins_handlers, lyplg_close_cb);
}
void