You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2014/05/02 02:59:17 UTC

git commit: TS-2766 Fix indentation / coding style

Repository: trafficserver
Updated Branches:
  refs/heads/master 39c5902e0 -> 72782383e


TS-2766 Fix indentation / coding style


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/72782383
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/72782383
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/72782383

Branch: refs/heads/master
Commit: 72782383e817e65ddc6448d7eb05207202db4a76
Parents: 39c5902
Author: Leif Hedstrom <zw...@apache.org>
Authored: Thu May 1 18:59:09 2014 -0600
Committer: Leif Hedstrom <zw...@apache.org>
Committed: Thu May 1 18:59:09 2014 -0600

----------------------------------------------------------------------
 proxy/hdrs/HTTP.cc | 4 +++-
 proxy/hdrs/MIME.cc | 4 +++-
 proxy/hdrs/URL.cc  | 4 +++-
 3 files changed, 9 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/72782383/proxy/hdrs/HTTP.cc
----------------------------------------------------------------------
diff --git a/proxy/hdrs/HTTP.cc b/proxy/hdrs/HTTP.cc
index 44cf881..24ad43b 100644
--- a/proxy/hdrs/HTTP.cc
+++ b/proxy/hdrs/HTTP.cc
@@ -1688,8 +1688,10 @@ HTTPHdrImpl::move_strings(HdrStrHeap *new_heap)
 }
 
 size_t
-HTTPHdrImpl::strings_length() {
+HTTPHdrImpl::strings_length()
+{
   size_t ret = 0;
+
   if (m_polarity == HTTP_TYPE_REQUEST) {
    ret += u.req.m_len_method;
   } else if (m_polarity == HTTP_TYPE_RESPONSE) {

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/72782383/proxy/hdrs/MIME.cc
----------------------------------------------------------------------
diff --git a/proxy/hdrs/MIME.cc b/proxy/hdrs/MIME.cc
index 95e5d09..0cbee78 100644
--- a/proxy/hdrs/MIME.cc
+++ b/proxy/hdrs/MIME.cc
@@ -3598,6 +3598,7 @@ size_t
 MIMEFieldBlockImpl::strings_length()
 {
   size_t ret = 0;
+
   for (uint32_t index = 0; index < m_freetop; index++) {
     MIMEField *field = &(m_field_slots[index]);
 
@@ -3646,7 +3647,8 @@ MIMEHdrImpl::move_strings(HdrStrHeap *new_heap)
 }
 
 size_t
-MIMEHdrImpl::strings_length() {
+MIMEHdrImpl::strings_length()
+{
   return m_first_fblock.strings_length();
 }
 

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/72782383/proxy/hdrs/URL.cc
----------------------------------------------------------------------
diff --git a/proxy/hdrs/URL.cc b/proxy/hdrs/URL.cc
index 34fec21..4638420 100644
--- a/proxy/hdrs/URL.cc
+++ b/proxy/hdrs/URL.cc
@@ -360,8 +360,10 @@ URLImpl::move_strings(HdrStrHeap * new_heap)
 }
 
 size_t
-URLImpl::strings_length() {
+URLImpl::strings_length()
+{
   size_t ret = 0;
+
   ret += m_len_scheme;
   ret += m_len_user;
   ret += m_len_password;