trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zw...@apache.org
Subject git commit: TS-2766 Fix indentation / coding style
Date Fri, 02 May 2014 00:59:17 GMT
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 <zwoop@apache.org>
Authored: Thu May 1 18:59:09 2014 -0600
Committer: Leif Hedstrom <zwoop@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;


Mime
View raw message