httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fua...@apache.org
Subject svn commit: r1482170 - /httpd/httpd/trunk/modules/proxy/proxy_util.c
Date Tue, 14 May 2013 01:53:53 GMT
Author: fuankg
Date: Tue May 14 01:53:53 2013
New Revision: 1482170

URL: http://svn.apache.org/r1482170
Log:
hunk 1: C89 please;
hunk 2: optional functions are usually declared static.

Modified:
    httpd/httpd/trunk/modules/proxy/proxy_util.c

Modified: httpd/httpd/trunk/modules/proxy/proxy_util.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/proxy_util.c?rev=1482170&r1=1482169&r2=1482170&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/proxy_util.c (original)
+++ httpd/httpd/trunk/modules/proxy/proxy_util.c Tue May 14 01:53:53 2013
@@ -2990,10 +2990,11 @@ static int find_conn_headers(void *data,
             x->first = name;
         }
         else {
+            const char **elt;
             if (!x->array) {
                 x->array = apr_array_make(x->pool, 4, sizeof(char *));
             }
-            const char **elt = apr_array_push(x->array);
+            elt = apr_array_push(x->array);
             *elt = name;
         }
         while (*val == ',') {
@@ -3007,8 +3008,7 @@ static int find_conn_headers(void *data,
 /**
  * Remove all headers referred to by the Connection header.
  */
-PROXY_DECLARE(int) ap_proxy_clear_connection(request_rec *r,
-        apr_table_t *headers)
+static int ap_proxy_clear_connection(request_rec *r, apr_table_t *headers)
 {
     const char **name;
     header_connection x;



Mime
View raw message