summaryrefslogtreecommitdiff
path: root/load.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2013-09-22 17:10:35 -0400
committerPaul Smith <psmith@gnu.org>2013-09-22 17:10:35 -0400
commit8a3655751fc41aa04cfd69fd9c9803df0e915a72 (patch)
tree3819a5ed9b0d36f7a586ebe0011a6584832d1aba /load.c
parent1a1624b03ebf0f520758d670545e97867ff1a799 (diff)
downloadmake-8a3655751fc41aa04cfd69fd9c9803df0e915a72.tar.gz
Use explicit cast between void* and pointer-to-function.
Diffstat (limited to 'load.c')
-rw-r--r--load.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/load.c b/load.c
index 165153a4..a2cbc25b 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 ());