Return-Path: Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: (qmail 65172 invoked from network); 7 Aug 2005 21:58:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Aug 2005 21:58:03 -0000 Received: (qmail 98127 invoked by uid 500); 7 Aug 2005 21:58:02 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 97937 invoked by uid 500); 7 Aug 2005 21:58:02 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 97924 invoked by uid 99); 7 Aug 2005 21:58:02 -0000 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 07 Aug 2005 14:58:01 -0700 Received: (qmail 65144 invoked by uid 65534); 7 Aug 2005 21:58:01 -0000 Message-ID: <20050807215801.65143.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r230704 - /httpd/httpd/branches/proxy-reqbody-2.0.x/modules/proxy/proxy_http.c Date: Sun, 07 Aug 2005 21:58:01 -0000 To: cvs@httpd.apache.org From: wrowe@apache.org X-Mailer: svnmailer-1.0.3 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: wrowe Date: Sun Aug 7 14:57:56 2005 New Revision: 230704 URL: http://svn.apache.org/viewcvs?rev=230704&view=rev Log: Prepare to backport r209836 whitespace changes; this is the one minor code change to declare *buf once, obliterating the need for a number of code blocks throughout this function. Modified: httpd/httpd/branches/proxy-reqbody-2.0.x/modules/proxy/proxy_http.c Modified: httpd/httpd/branches/proxy-reqbody-2.0.x/modules/proxy/proxy_http.c URL: http://svn.apache.org/viewcvs/httpd/httpd/branches/proxy-reqbody-2.0.x/modules/proxy/proxy_http.c?rev=230704&r1=230703&r2=230704&view=diff ============================================================================== --- httpd/httpd/branches/proxy-reqbody-2.0.x/modules/proxy/proxy_http.c (original) +++ httpd/httpd/branches/proxy-reqbody-2.0.x/modules/proxy/proxy_http.c Sun Aug 7 14:57:56 2005 @@ -1102,6 +1102,7 @@ char *server_portstr) { conn_rec *c = r->connection; char buffer[HUGE_STRING_LEN]; + const char *buf; char keepchar; request_rec *rp; apr_bucket *e; @@ -1201,7 +1202,6 @@ return r->status; } else { - const char *buf; /* can't have both Content-Length and Transfer-Encoding */ if (apr_table_get(r->headers_out, "Transfer-Encoding") @@ -1270,7 +1270,6 @@ /* we must accept 3 kinds of date, but generate only 1 kind of date */ { - const char *buf; if ((buf = apr_table_get(r->headers_out, "Date")) != NULL) { apr_table_set(r->headers_out, "Date", ap_proxy_date_canon(p, buf)); @@ -1289,7 +1288,6 @@ * ProxyPassReverse */ { - const char *buf; if ((buf = apr_table_get(r->headers_out, "Location")) != NULL) { apr_table_set(r->headers_out, "Location", ap_proxy_location_reverse_map(r, conf, buf)); @@ -1305,7 +1303,6 @@ } if ((r->status == 401) && (conf->error_override != 0)) { - const char *buf; const char *wa = "WWW-Authenticate"; if ((buf = apr_table_get(r->headers_out, wa))) { apr_table_set(r->err_headers_out, wa, buf);