From c3524b83b9bfb7e943f9b91b0d624129a78e5963 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sun, 22 Sep 2013 12:31:35 -0400 Subject: Use explicit cast between void* and pointer-to-function. --- load.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'load.c') diff --git a/load.c b/load.c index 165153a..a2cbc25 100644 --- a/load.c +++ b/load.c @@ -82,12 +82,12 @@ load_object (const gmk_floc *flocp, int noerror, } /* Assert that the GPL license symbol is defined. */ - symp = dlsym (dlp, "plugin_is_GPL_compatible"); + symp = (load_func_t) dlsym (dlp, "plugin_is_GPL_compatible"); if (! symp) fatal (flocp, _("Loaded object %s is not declared to be GPL compatible"), ldname); - symp = dlsym (dlp, symname); + symp = (load_func_t) dlsym (dlp, symname); if (! symp) fatal (flocp, _("Failed to load symbol %s from %s: %s"), symname, ldname, dlerror ()); -- cgit v1.2.3