1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

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
This commit is contained in:
Guenter Knauf
2013-05-14 01:53:53 +00:00
parent 4783ccc4bc
commit e929fb1ee5

View File

@@ -2990,10 +2990,11 @@ static int find_conn_headers(void *data, const char *key, const char *val)
x->first = name; x->first = name;
} }
else { else {
const char **elt;
if (!x->array) { if (!x->array) {
x->array = apr_array_make(x->pool, 4, sizeof(char *)); 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; *elt = name;
} }
while (*val == ',') { 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. * Remove all headers referred to by the Connection header.
*/ */
PROXY_DECLARE(int) ap_proxy_clear_connection(request_rec *r, static int ap_proxy_clear_connection(request_rec *r, apr_table_t *headers)
apr_table_t *headers)
{ {
const char **name; const char **name;
header_connection x; header_connection x;