From: Guenter Knauf Date: Tue, 14 May 2013 01:53:53 +0000 (+0000) Subject: hunk 1: C89 please; X-Git-Tag: 2.5.0-alpha~5457 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e929fb1ee5f7336e91eabc5826b090fcffc0cfbb;p=apache hunk 1: C89 please; 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 --- diff --git a/modules/proxy/proxy_util.c b/modules/proxy/proxy_util.c index d43329674f..0ffdbdcb1b 100644 --- a/modules/proxy/proxy_util.c +++ b/modules/proxy/proxy_util.c @@ -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;