Commit 30637c39 authored by Graham Leggett's avatar Graham Leggett
Browse files

Fixing a few compiler warnings with mod_proxy

PR:
Obtained from:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88659 13f79535-47bb-0310-9956-ffa450edef68
parent 5e050a21
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -547,7 +547,6 @@ static const char *
    ap_get_module_config(s->module_config, &proxy_module);
    struct noproxy_entry *new;
    struct noproxy_entry *list = (struct noproxy_entry *) conf->noproxies->elts;
    struct hostent hp;
    struct apr_sockaddr_t *addr;
    int found = 0;
    int i;
+0 −1
Original line number Diff line number Diff line
@@ -114,7 +114,6 @@ allowed_port(proxy_server_conf *conf, int port)
int ap_proxy_connect_handler(request_rec *r, char *url,
			  const char *proxyhost, int proxyport)
{
    struct in_addr destaddr;
    const char *host;
    char *p;
    int port;
+2 −3
Original line number Diff line number Diff line
@@ -181,14 +181,13 @@ int ap_proxy_http_handler(request_rec *r, char *url,
{
    request_rec *rp;
    apr_pool_t *p = r->connection->pool;
    struct hostent *connecthost;
    const char *connectname;
    int connectport = 0;
    apr_sockaddr_t *uri_addr;
    apr_sockaddr_t *connect_addr;
    char server_portstr[32];
    apr_socket_t *sock;
    int i, j, k, len, backasswards, close=0, failed=0, new=0;
    int i, j, len, backasswards, close=0, failed=0, new=0;
    apr_status_t err;
    apr_array_header_t *headers_in_array;
    apr_table_entry_t *headers_in;
@@ -722,7 +721,7 @@ int ap_proxy_http_handler(request_rec *r, char *url,
	if (ap_proxy_liststr((buf = apr_table_get(r->headers_out, "Transfer-Encoding")), "chunked")) {
	    rp->read_chunked = 1;
	    apr_table_unset(r->headers_out, "Transfer-Encoding");
	    if (buf = ap_proxy_removestr(r->pool, buf, "chunked")) {
	    if ((buf = ap_proxy_removestr(r->pool, buf, "chunked"))) {
		apr_table_set(r->headers_out, "Transfer-Encoding", buf);
	    }
	    ap_add_input_filter("DECHUNK", NULL, rp, origin);