]> granicus.if.org Git - apache/commitdiff
Fixing a few compiler warnings with mod_proxy
authorGraham Leggett <minfrin@apache.org>
Mon, 2 Apr 2001 21:19:22 +0000 (21:19 +0000)
committerGraham Leggett <minfrin@apache.org>
Mon, 2 Apr 2001 21:19:22 +0000 (21:19 +0000)
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
modules/proxy/proxy_connect.c
modules/proxy/proxy_http.c

index f86f41b64c8192100dd5b909080f015d7d7be5be..5db5eb92d67a69796bc29dfe95f9ce4db03e3370 100644 (file)
@@ -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;
index 86e07d2620562fe9bb465dec4edb33758ce7bc92..f75c193a79049340061a20ef7a57eedcfe0daceb 100644 (file)
@@ -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;
index 8b79bc37917ba2dcf25afb12fc6023bd46870695..e61ab5a10be212fb4eb1dc67e587e50e95179264 100644 (file)
@@ -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);