Author: bojan
Date: Thu Jun  5 16:52:28 2008
New Revision: 663789

URL: http://svn.apache.org/viewvc?rev=663789&view=rev
Log:
Backport r663787 from the trunk.
Avoid strict aliasing warnings by GCC.

Modified:
    httpd/apreq/branches/v2_10/library/module_cgi.c
    httpd/apreq/branches/v2_10/module/apache2/handle.c

Modified: httpd/apreq/branches/v2_10/library/module_cgi.c
URL: 
http://svn.apache.org/viewvc/httpd/apreq/branches/v2_10/library/module_cgi.c?rev=663789&r1=663788&r2=663789&view=diff
==============================================================================
--- httpd/apreq/branches/v2_10/library/module_cgi.c (original)
+++ httpd/apreq/branches/v2_10/library/module_cgi.c Thu Jun  5 16:52:28 2008
@@ -474,7 +474,7 @@
         h = req->find_param;
         h->next = req->parser->hook;
         req->parser->hook = h;
-        *(const char **)&h->ctx = name;
+        h->ctx = (void *)name;
 
         do {
             cgi_read(handle, APREQ_DEFAULT_READ_BLOCK_SIZE);

Modified: httpd/apreq/branches/v2_10/module/apache2/handle.c
URL: 
http://svn.apache.org/viewvc/httpd/apreq/branches/v2_10/module/apache2/handle.c?rev=663789&r1=663788&r2=663789&view=diff
==============================================================================
--- httpd/apreq/branches/v2_10/module/apache2/handle.c (original)
+++ httpd/apreq/branches/v2_10/module/apache2/handle.c Thu Jun  5 16:52:28 2008
@@ -207,7 +207,7 @@
         h = ctx->find_param;
         h->next = ctx->parser->hook;
         ctx->parser->hook = h;
-        *(const char **)&h->ctx = name;
+        h->ctx = (void *)name;
 
         do {
             apreq_filter_prefetch(f, APREQ_DEFAULT_READ_BLOCK_SIZE);


Reply via email to