apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bo...@apache.org
Subject svn commit: r669696 - /apr/apr/branches/1.3.x/dso/unix/dso.c
Date Thu, 19 Jun 2008 21:10:20 GMT
Author: bojan
Date: Thu Jun 19 14:10:20 2008
New Revision: 669696

URL: http://svn.apache.org/viewvc?rev=669696&view=rev
Log:
Backport r669082 from the trunk.
Avoid strict aliasing warnings on HP-UX.

Modified:
    apr/apr/branches/1.3.x/dso/unix/dso.c

Modified: apr/apr/branches/1.3.x/dso/unix/dso.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.3.x/dso/unix/dso.c?rev=669696&r1=669695&r2=669696&view=diff
==============================================================================
--- apr/apr/branches/1.3.x/dso/unix/dso.c (original)
+++ apr/apr/branches/1.3.x/dso/unix/dso.c Thu Jun 19 14:10:20 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