summaryrefslogtreecommitdiffstats
path: root/crypto/dso/dso_dlfcn.c
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2005-06-09 21:41:44 +0000
committerAndy Polyakov <appro@openssl.org>2005-06-09 21:41:44 +0000
commit21ac2b964bafe37eff49c9d96a62af84d9345fd4 (patch)
tree4adb4a870c807920e60cdaca0db82034d9b09300 /crypto/dso/dso_dlfcn.c
parent79e1dd65ab0e0e852174a45f93ce7dbefae43f09 (diff)
Eliminate gcc -pedantic warnings.
Diffstat (limited to 'crypto/dso/dso_dlfcn.c')
-rw-r--r--crypto/dso/dso_dlfcn.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/crypto/dso/dso_dlfcn.c b/crypto/dso/dso_dlfcn.c
index 56756cf541..76630d865e 100644
--- a/crypto/dso/dso_dlfcn.c
+++ b/crypto/dso/dso_dlfcn.c
@@ -423,7 +423,12 @@ static int dlfcn_pathbyaddr(void *addr,char *path,int sz)
Dl_info dli;
int len;
- if (addr == NULL) addr = dlfcn_pathbyaddr;
+ if (addr == NULL)
+ {
+ union { int(*f)(void*,char*,int); void *p; } t =
+ { dlfcn_pathbyaddr };
+ addr = t.p;
+ }
if (dladdr(addr,&dli))
{