]> granicus.if.org Git - apache/commitdiff
Made the variable naming the same as everywhere else in Apache for the
authorGraham Leggett <minfrin@apache.org>
Tue, 24 Apr 2001 04:38:53 +0000 (04:38 +0000)
committerGraham Leggett <minfrin@apache.org>
Tue, 24 Apr 2001 04:38:53 +0000 (04:38 +0000)
ap_get_brigade() fix.
PR:
Obtained from:
Reviewed by:

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88927 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/proxy_ftp.c
modules/proxy/proxy_http.c
modules/proxy/proxy_util.c

index 69d29a078090e3fae488a29542fd5f8a8f4cd6dc..114c7e8d44c24181ccfece6d309f0d7898745deb 100644 (file)
@@ -550,7 +550,7 @@ PROXY_DECLARE (int) ap_proxy_ftp_handler(request_rec *r, proxy_server_conf *conf
     int i, j, len, rc;
     int one = 1;
     char *size = NULL;
-    apr_size_t remain = -1;
+    apr_size_t readbytes = -1;
 
     /* stuff for PASV mode */
     int connect = 0, use_port = 0;
@@ -1574,7 +1574,7 @@ PROXY_DECLARE (int) ap_proxy_ftp_handler(request_rec *r, proxy_server_conf *conf
                     "proxy: FTP: start body send");
 
        /* read the body, pass it to the output filters */
-       while (ap_get_brigade(remote->input_filters, bb, AP_MODE_BLOCKING, &remain) == APR_SUCCESS) {
+       while (ap_get_brigade(remote->input_filters, bb, AP_MODE_BLOCKING, &readbytes) == APR_SUCCESS) {
            if (APR_BUCKET_IS_EOS(APR_BRIGADE_LAST(bb))) {
                e = apr_bucket_flush_create();
                APR_BRIGADE_INSERT_TAIL(bb, e);
index 54c9cf1e2d5b32a9d2edea54129672a65dec9194..988133f8b3c1f95183fb8a5de0c4e872ad92e000 100644 (file)
@@ -744,7 +744,7 @@ PROXY_DECLARE (int) ap_proxy_http_handler(request_rec *r, proxy_server_conf *con
     /* send body */
     if (!r->header_only) {
        const char *buf;
-       apr_size_t remain;
+       apr_size_t readbytes;
 
        /* if chunked - insert DECHUNK filter */
        if (ap_proxy_liststr((buf = apr_table_get(r->headers_out, "Transfer-Encoding")), "chunked")) {
@@ -754,12 +754,12 @@ PROXY_DECLARE (int) ap_proxy_http_handler(request_rec *r, proxy_server_conf *con
                apr_table_set(r->headers_out, "Transfer-Encoding", buf);
            }
            ap_add_input_filter("DECHUNK", NULL, rp, origin);
-           remain = -1;
+           readbytes = -1;
        }
 
        /* if content length - set the length to read */
        else if ((buf = apr_table_get(r->headers_out, "Content-Length"))) {
-           remain = atol(buf);
+           readbytes = atol(buf);
        }
 
        /* no chunked / no length therefore read till EOF and cancel keepalive */
@@ -769,14 +769,14 @@ PROXY_DECLARE (int) ap_proxy_http_handler(request_rec *r, proxy_server_conf *con
 
        /* if keepalive cancelled, read to EOF */
        if (close) {
-           remain = -1;
+           readbytes = -1;
        }
 
        ap_log_error(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, 0, r->server,
                     "proxy: start body send");
 
        /* read the body, pass it to the output filters */
-       while (ap_get_brigade(rp->input_filters, bb, AP_MODE_BLOCKING, &remain) == APR_SUCCESS) {
+       while (ap_get_brigade(rp->input_filters, bb, AP_MODE_BLOCKING, &readbytes) == APR_SUCCESS) {
            if (APR_BUCKET_IS_EOS(APR_BRIGADE_LAST(bb))) {
                e = apr_bucket_flush_create();
                APR_BRIGADE_INSERT_TAIL(bb, e);
index 347214091a452e679dee3d011817e2fb77af91d2..b51feb1a1169442d783b98910f76b89b4e256a85 100644 (file)
@@ -1087,11 +1087,11 @@ apr_status_t ap_proxy_string_read(conn_rec *c, apr_bucket_brigade *bb,
 {
     apr_bucket *e;
     apr_status_t rv;
-    apr_size_t zero = 0;
+    apr_size_t readbytes = 0;  /* line-at-a-time */
     char *pos = buff;
     char *response;
     int found = 0;
-    size_t len;
+    apr_size_t len;
 
     /* start with an empty string */
     buff[0] = 0;
@@ -1101,7 +1101,7 @@ apr_status_t ap_proxy_string_read(conn_rec *c, apr_bucket_brigade *bb,
     while (!found) {
 
        /* get brigade from network one line at a time */
-       if (APR_SUCCESS != (rv = ap_get_brigade(c->input_filters, bb, AP_MODE_BLOCKING, &zero))) {
+       if (APR_SUCCESS != (rv = ap_get_brigade(c->input_filters, bb, AP_MODE_BLOCKING, &readbytes))) {
            return rv;
        }