From 04ae79a363e2a85096c4dbdf6d5469d3a19a6907 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Tue, 15 Dec 2015 09:49:17 +0100 Subject: Fix aliasing violation in tst-rec-dlopen --- dlfcn/tst-rec-dlopen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dlfcn/tst-rec-dlopen.c') diff --git a/dlfcn/tst-rec-dlopen.c b/dlfcn/tst-rec-dlopen.c index 01353fbc86..1ab7aa91aa 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 (); -- cgit v1.2.3-65-gdbad