diff options
Diffstat (limited to 'dlfcn')
-rw-r--r-- | dlfcn/tst-rec-dlopen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dlfcn/tst-rec-dlopen.c b/dlfcn/tst-rec-dlopen.c index 01353fb..1ab7aa9 100644 --- a/dlfcn/tst-rec-dlopen.c +++ b/dlfcn/tst-rec-dlopen.c @@ -57,7 +57,7 @@ call_func (const char *dso_name, const char *func_name) dlerror (); /* Lookup func. */ - *(void **) (&func) = dlsym (dso, func_name); + func = (int (*) (void)) dlsym (dso, func_name); if (func == NULL) { err = dlerror (); |