about summary refs log tree commit diff
path: root/dlfcn/tst-rec-dlopen.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2015-12-15 09:49:17 +0100
committerFlorian Weimer <fweimer@redhat.com>2015-12-15 11:48:27 +0100
commit04ae79a363e2a85096c4dbdf6d5469d3a19a6907 (patch)
tree6fc87aab66475d24f51eaa10302fd5747bc63ec7 /dlfcn/tst-rec-dlopen.c
parenteed3e1eb79bcfa9b52609fd875fa2d522e2d6bce (diff)
downloadglibc-04ae79a363e2a85096c4dbdf6d5469d3a19a6907.tar.gz
glibc-04ae79a363e2a85096c4dbdf6d5469d3a19a6907.tar.xz
glibc-04ae79a363e2a85096c4dbdf6d5469d3a19a6907.zip
Fix aliasing violation in tst-rec-dlopen
Diffstat (limited to 'dlfcn/tst-rec-dlopen.c')
-rw-r--r--dlfcn/tst-rec-dlopen.c2
1 files changed, 1 insertions, 1 deletions
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 ();