aboutsummaryrefslogtreecommitdiff
path: root/ld/plugin.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2012-10-22 04:54:25 +0000
committerAlan Modra <amodra@gmail.com>2012-10-22 04:54:25 +0000
commita8f9d13eda525d42916c33b0a9f4b98ca84f3aab (patch)
tree37938e413e53c9717a6cec610886e66cd07849a8 /ld/plugin.c
parenteac3aa9e9a0163844ff1444b61d3a6eeff9a1fa3 (diff)
downloadgdb-a8f9d13eda525d42916c33b0a9f4b98ca84f3aab.zip
gdb-a8f9d13eda525d42916c33b0a9f4b98ca84f3aab.tar.gz
gdb-a8f9d13eda525d42916c33b0a9f4b98ca84f3aab.tar.bz2
* plugin.c (plugin_load_plugins): Warning fix.
Diffstat (limited to 'ld/plugin.c')
-rw-r--r--ld/plugin.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ld/plugin.c b/ld/plugin.c
index 7e3d2a3..8902ef4 100644
--- a/ld/plugin.c
+++ b/ld/plugin.c
@@ -800,9 +800,11 @@ plugin_load_plugins (void)
while (curplug)
{
enum ld_plugin_status rv;
- ld_plugin_onload onloadfn = dlsym (curplug->dlhandle, "onload");
+ ld_plugin_onload onloadfn;
+
+ onloadfn = (ld_plugin_onload) dlsym (curplug->dlhandle, "onload");
if (!onloadfn)
- onloadfn = dlsym (curplug->dlhandle, "_onload");
+ onloadfn = (ld_plugin_onload) dlsym (curplug->dlhandle, "_onload");
if (!onloadfn)
return set_plugin_error (curplug->name);
set_tv_plugin_args (curplug, &my_tv[tv_header_size]);