You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apreq-cvs@httpd.apache.org by bo...@apache.org on 2008/06/06 01:50:28 UTC
svn commit: r663787 - in /httpd/apreq/trunk: library/module_cgi.c
module/apache2/handle.c
Author: bojan
Date: Thu Jun 5 16:50:28 2008
New Revision: 663787
URL: http://svn.apache.org/viewvc?rev=663787&view=rev
Log:
Avoid strict aliasing warnings by GCC.
Modified:
httpd/apreq/trunk/library/module_cgi.c
httpd/apreq/trunk/module/apache2/handle.c
Modified: httpd/apreq/trunk/library/module_cgi.c
URL: http://svn.apache.org/viewvc/httpd/apreq/trunk/library/module_cgi.c?rev=663787&r1=663786&r2=663787&view=diff
==============================================================================
--- httpd/apreq/trunk/library/module_cgi.c (original)
+++ httpd/apreq/trunk/library/module_cgi.c Thu Jun 5 16:50: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/trunk/module/apache2/handle.c
URL: http://svn.apache.org/viewvc/httpd/apreq/trunk/module/apache2/handle.c?rev=663787&r1=663786&r2=663787&view=diff
==============================================================================
--- httpd/apreq/trunk/module/apache2/handle.c (original)
+++ httpd/apreq/trunk/module/apache2/handle.c Thu Jun 5 16:50: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);