Eliminate gcc -pedantic warnings.
authorAndy Polyakov <appro@openssl.org>
Thu, 9 Jun 2005 21:37:30 +0000 (21:37 +0000)
committerAndy Polyakov <appro@openssl.org>
Thu, 9 Jun 2005 21:37:30 +0000 (21:37 +0000)
crypto/dso/dso_dl.c
crypto/dso/dso_dlfcn.c

index 0c6e7c9f8699a614a3764d2ca76c97d28168d32e..f7b4dfc0c37fd607b4d77224e9cacc92dc057f44 100644 (file)
@@ -290,7 +290,11 @@ int DSO_pathbyaddr(void *addr,char *path,int sz)
        struct shl_descriptor inf;
        int i,len;
 
-       if (addr == NULL) addr = dl_ref_point;
+       if (addr == NULL)
+               {
+               union { void(*f)(); void *p; } t = { dl_ref_point };
+               addr = t.p;
+               }
 
        for (i=-1;shl_get_r(i,&inf)==0;i++)
                {
index d7d40ce32475912b9c0d3f693de5fbabb631cf46..0422a4859aa429770cb152979c8239b24c42a902 100644 (file)
@@ -302,7 +302,11 @@ int DSO_pathbyaddr(void *addr,char *path,int sz)
        Dl_info dli;
        int len;
 
-       if (addr == NULL) addr = dlfcn_ref_point;
+       if (addr == NULL)
+               {
+               union { void(*f)(void); void *p; } t = { dlfcn_ref_point };
+               addr = t.p;
+               }
 
        if (dladdr(addr,&dli))
                {