summaryrefslogtreecommitdiffstats
path: root/crypto/dso/dso_dl.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_dl.c
parent79e1dd65ab0e0e852174a45f93ce7dbefae43f09 (diff)
Eliminate gcc -pedantic warnings.
Diffstat (limited to 'crypto/dso/dso_dl.c')
-rw-r--r--crypto/dso/dso_dl.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/crypto/dso/dso_dl.c b/crypto/dso/dso_dl.c
index 4d599246c8..dccb8e7ee8 100644
--- a/crypto/dso/dso_dl.c
+++ b/crypto/dso/dso_dl.c
@@ -357,7 +357,12 @@ static int dl_pathbyaddr(void *addr,char *path,int sz)
struct shl_descriptor inf;
int i,len;
- if (addr == NULL) addr = dl_pathbyaddr;
+ if (addr == NULL)
+ {
+ union { int(*f)(void*,char*,int); void *p; } t =
+ { dl_pathbyaddr };
+ addr = t.p;
+ }
for (i=-1;shl_get_r(i,&inf)==0;i++)
{