diff options
author | Andy Polyakov <appro@openssl.org> | 2005-06-09 21:41:44 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2005-06-09 21:41:44 +0000 |
commit | 21ac2b964bafe37eff49c9d96a62af84d9345fd4 (patch) | |
tree | 4adb4a870c807920e60cdaca0db82034d9b09300 /crypto/dso/dso_dlfcn.c | |
parent | 79e1dd65ab0e0e852174a45f93ce7dbefae43f09 (diff) | |
download | openssl-new-21ac2b964bafe37eff49c9d96a62af84d9345fd4.tar.gz |
Eliminate gcc -pedantic warnings.
Diffstat (limited to 'crypto/dso/dso_dlfcn.c')
-rw-r--r-- | crypto/dso/dso_dlfcn.c | 7 |
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)) { |