]> granicus.if.org Git - apache/commitdiff
hunk 1: C89 please;
authorGuenter Knauf <fuankg@apache.org>
Tue, 14 May 2013 01:53:53 +0000 (01:53 +0000)
committerGuenter Knauf <fuankg@apache.org>
Tue, 14 May 2013 01:53:53 +0000 (01:53 +0000)
hunk 2: optional functions are usually declared static.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1482170 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/proxy_util.c

index d43329674f2ea91bc63ac1078e1281a20d54bdf8..0ffdbdcb1b4a004a4d3bc26b0f6227cb967df886 100644 (file)
@@ -2990,10 +2990,11 @@ static int find_conn_headers(void *data, const char *key, const char *val)
             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, const char *key, const char *val)
 /**
  * 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;