From b924ea846d016c32289612698b26d285cb51f59f Mon Sep 17 00:00:00 2001 From: Graham Leggett Date: Mon, 2 Apr 2001 21:19:22 +0000 Subject: [PATCH] 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 --- modules/proxy/mod_proxy.c | 1 - modules/proxy/proxy_connect.c | 1 - modules/proxy/proxy_http.c | 5 ++--- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/modules/proxy/mod_proxy.c b/modules/proxy/mod_proxy.c index f86f41b64c..5db5eb92d6 100644 --- a/modules/proxy/mod_proxy.c +++ b/modules/proxy/mod_proxy.c @@ -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; diff --git a/modules/proxy/proxy_connect.c b/modules/proxy/proxy_connect.c index 86e07d2620..f75c193a79 100644 --- a/modules/proxy/proxy_connect.c +++ b/modules/proxy/proxy_connect.c @@ -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; diff --git a/modules/proxy/proxy_http.c b/modules/proxy/proxy_http.c index 8b79bc3791..e61ab5a10b 100644 --- a/modules/proxy/proxy_http.c +++ b/modules/proxy/proxy_http.c @@ -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); -- 2.40.0