Author: joes
Date: Fri Jan  9 17:21:07 2009
New Revision: 733216

URL: http://svn.apache.org/viewvc?rev=733216&view=rev
Log:
gcc 4 doesn't like this cast, so use the address of the variable instead

Modified:
    httpd/apreq/trunk/include/apreq_version.h
    httpd/apreq/trunk/library/module_cgi.c
    httpd/apreq/trunk/library/parser.c
    httpd/apreq/trunk/module/apache2/handle.c

Modified: httpd/apreq/trunk/include/apreq_version.h
URL: 
http://svn.apache.org/viewvc/httpd/apreq/trunk/include/apreq_version.h?rev=733216&r1=733215&r2=733216&view=diff
==============================================================================
--- httpd/apreq/trunk/include/apreq_version.h (original)
+++ httpd/apreq/trunk/include/apreq_version.h Fri Jan  9 17:21:07 2009
@@ -62,7 +62,7 @@
 #define APREQ_MINOR_VERSION       6
 
 /** patch level */
-#define APREQ_PATCH_VERSION       3
+#define APREQ_PATCH_VERSION       4
 
 /**
  *  This symbol is defined for internal, "development" copies of libapreq.

Modified: httpd/apreq/trunk/library/module_cgi.c
URL: 
http://svn.apache.org/viewvc/httpd/apreq/trunk/library/module_cgi.c?rev=733216&r1=733215&r2=733216&view=diff
==============================================================================
--- httpd/apreq/trunk/library/module_cgi.c (original)
+++ httpd/apreq/trunk/library/module_cgi.c Fri Jan  9 17:21:07 2009
@@ -474,11 +474,11 @@
         h = req->find_param;
         h->next = req->parser->hook;
         req->parser->hook = h;
-        h->ctx = (void *)name;
+        h->ctx = &name;
 
         do {
             cgi_read(handle, APREQ_DEFAULT_READ_BLOCK_SIZE);
-            if (h->ctx != name) {
+            if (h->ctx != &name) {
                 req->parser->hook = h->next;
                 return h->ctx;
             }

Modified: httpd/apreq/trunk/library/parser.c
URL: 
http://svn.apache.org/viewvc/httpd/apreq/trunk/library/parser.c?rev=733216&r1=733215&r2=733216&view=diff
==============================================================================
--- httpd/apreq/trunk/library/parser.c (original)
+++ httpd/apreq/trunk/library/parser.c Fri Jan  9 17:21:07 2009
@@ -341,7 +341,7 @@
 
 APREQ_DECLARE_HOOK(apreq_hook_find_param)
 {
-    const char *key = hook->ctx;
+    const char *key = *(const char **)hook->ctx;
     int is_final = (bb == NULL) || APR_BUCKET_IS_EOS(APR_BRIGADE_LAST(bb));
     apr_status_t s = (hook->next == NULL)
         ? APR_SUCCESS : apreq_hook_run(hook->next, param, bb);

Modified: httpd/apreq/trunk/module/apache2/handle.c
URL: 
http://svn.apache.org/viewvc/httpd/apreq/trunk/module/apache2/handle.c?rev=733216&r1=733215&r2=733216&view=diff
==============================================================================
--- httpd/apreq/trunk/module/apache2/handle.c (original)
+++ httpd/apreq/trunk/module/apache2/handle.c Fri Jan  9 17:21:07 2009
@@ -207,11 +207,11 @@
         h = ctx->find_param;
         h->next = ctx->parser->hook;
         ctx->parser->hook = h;
-        h->ctx = (void *)name;
+        h->ctx = &name;
 
         do {
             apreq_filter_prefetch(f, APREQ_DEFAULT_READ_BLOCK_SIZE);
-            if (h->ctx != name) {
+            if (h->ctx != &name) {
                 ctx->parser->hook = h->next;
                 return h->ctx;
             }


Reply via email to