You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by mi...@apache.org on 2001/04/02 23:19:32 UTC
cvs commit: httpd-proxy/module-2.0 mod_proxy.c proxy_connect.c proxy_http.c
minfrin 01/04/02 14:19:32
Modified: module-2.0 mod_proxy.c proxy_connect.c proxy_http.c
Log:
Fixing a few compiler warnings with mod_proxy
Revision Changes Path
1.30 +0 -1 httpd-proxy/module-2.0/mod_proxy.c
Index: mod_proxy.c
===================================================================
RCS file: /home/cvs/httpd-proxy/module-2.0/mod_proxy.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- mod_proxy.c 2001/04/02 17:04:17 1.29
+++ mod_proxy.c 2001/04/02 21:19:19 1.30
@@ -547,7 +547,6 @@
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;
1.23 +0 -1 httpd-proxy/module-2.0/proxy_connect.c
Index: proxy_connect.c
===================================================================
RCS file: /home/cvs/httpd-proxy/module-2.0/proxy_connect.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- proxy_connect.c 2001/04/02 17:04:18 1.22
+++ proxy_connect.c 2001/04/02 21:19:20 1.23
@@ -114,7 +114,6 @@
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;
1.38 +2 -3 httpd-proxy/module-2.0/proxy_http.c
Index: proxy_http.c
===================================================================
RCS file: /home/cvs/httpd-proxy/module-2.0/proxy_http.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- proxy_http.c 2001/04/02 20:55:23 1.37
+++ proxy_http.c 2001/04/02 21:19:22 1.38
@@ -181,14 +181,13 @@
{
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 @@
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);