summaryrefslogtreecommitdiffstats
path: root/crypto/dso/dso_win32.c
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2005-06-09 23:41:44 +0200
committerAndy Polyakov <appro@openssl.org>2005-06-09 23:41:44 +0200
commit21ac2b964bafe37eff49c9d96a62af84d9345fd4 (patch)
tree4adb4a870c807920e60cdaca0db82034d9b09300 /crypto/dso/dso_win32.c
parentAllow for dso load by explicit path on HP-UX. (diff)
downloadopenssl-21ac2b964bafe37eff49c9d96a62af84d9345fd4.tar.xz
openssl-21ac2b964bafe37eff49c9d96a62af84d9345fd4.zip
Eliminate gcc -pedantic warnings.
Diffstat (limited to 'crypto/dso/dso_win32.c')
-rw-r--r--crypto/dso/dso_win32.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/crypto/dso/dso_win32.c b/crypto/dso/dso_win32.c
index 96ccd4b7ee..317606ac5b 100644
--- a/crypto/dso/dso_win32.c
+++ b/crypto/dso/dso_win32.c
@@ -635,7 +635,12 @@ static int win32_pathbyaddr(void *addr,char *path,int sz)
MODULE32 module_first, module_next;
int len;
- if (addr == NULL) addr = win32_pathbyaddr;
+ if (addr == NULL)
+ {
+ union { int(*f)(void*,char*,int); void *p; } t =
+ { win32_pathbyaddr };
+ addr = t.p;
+ }
dll = LoadLibrary(TEXT(DLLNAME));
if (dll == NULL)