summaryrefslogtreecommitdiff
path: root/usr/src/cmd/sgs/libld
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2018-07-02 22:00:57 +0300
committerHans Rosenfeld <hans.rosenfeld@joyent.com>2019-01-04 13:36:10 +0100
commitc5749750a3e052f1194f65a303456224c51dea63 (patch)
treea86029e69062cae9cc59e1192f29de88c50f1563 /usr/src/cmd/sgs/libld
parent5e90af26eb6ed2206c2a5f5131a1f3c377d6e8c4 (diff)
downloadillumos-joyent-c5749750a3e052f1194f65a303456224c51dea63.tar.gz
10157 sgs/libld: cast between incompatible function types
Reviewed by: Gergő Mihály Doma <domag02@gmail.com> Reviewed by: Alexander Pyhalov <apyhalov@gmail.com> Approved by: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
Diffstat (limited to 'usr/src/cmd/sgs/libld')
-rw-r--r--usr/src/cmd/sgs/libld/common/support.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr/src/cmd/sgs/libld/common/support.c b/usr/src/cmd/sgs/libld/common/support.c
index e449602952..cd3a8f9ba3 100644
--- a/usr/src/cmd/sgs/libld/common/support.c
+++ b/usr/src/cmd/sgs/libld/common/support.c
@@ -64,7 +64,7 @@ static Support_list support[LDS_NUM] = {
uintptr_t
ld_sup_loadso(Ofl_desc *ofl, const char *obj)
{
- void *handle, (*fptr)();
+ void *handle, *fptr;
uint_t interface, version = LD_SUP_VERSION1;
/*
@@ -80,8 +80,7 @@ ld_sup_loadso(Ofl_desc *ofl, const char *obj)
for (interface = 0; interface < LDS_NUM; interface++) {
Func_list fl;
- if ((fptr = (void (*)())dlsym(handle,
- support[interface].sup_name)) == NULL)
+ if ((fptr = dlsym(handle, support[interface].sup_name)) == NULL)
continue;
DBG_CALL(Dbg_support_load(ofl->ofl_lml, obj,