From c5749750a3e052f1194f65a303456224c51dea63 Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Mon, 2 Jul 2018 22:00:57 +0300 Subject: 10157 sgs/libld: cast between incompatible function types Reviewed by: Gergő Mihály Doma Reviewed by: Alexander Pyhalov Approved by: Hans Rosenfeld MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- usr/src/cmd/sgs/libld/common/support.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'usr/src/cmd/sgs/libld') 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, -- cgit v1.2.3