apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bo...@apache.org
Subject svn commit: r669082 - /apr/apr/trunk/dso/unix/dso.c
Date Wed, 18 Jun 2008 04:58:40 GMT
Author: bojan
Date: Tue Jun 17 21:58:40 2008
New Revision: 669082

URL: http://svn.apache.org/viewvc?rev=669082&view=rev
Log:
Avoid strict aliasing warnings on HP-UX.

Modified:
    apr/apr/trunk/dso/unix/dso.c

Modified: apr/apr/trunk/dso/unix/dso.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/dso/unix/dso.c?rev=669082&r1=669081&r2=669082&view=diff
==============================================================================
--- apr/apr/trunk/dso/unix/dso.c (original)
+++ apr/apr/trunk/dso/unix/dso.c Tue Jun 17 21:58:40 2008
@@ -178,9 +178,9 @@
     int status;
 
     errno = 0;
-    status = shl_findsym((shl_t *)&handle->handle, symname, TYPE_PROCEDURE, &symaddr);
+    status = shl_findsym((void *)&handle->handle, symname, TYPE_PROCEDURE, &symaddr);
     if (status == -1 && errno == 0) /* try TYPE_DATA instead */
-        status = shl_findsym((shl_t *)&handle->handle, symname, TYPE_DATA, &symaddr);
+        status = shl_findsym((void *)&handle->handle, symname, TYPE_DATA, &symaddr);
     if (status == -1)
         return APR_ESYMNOTFOUND;
     *ressym = symaddr;



Mime
View raw message