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/03/19 21:33:13 UTC

[2/2] git commit: Avoid compiler warnings with newer clang

Avoid compiler warnings with newer clang


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

Branch: refs/heads/master
Commit: b749034af325f26daad91fcefd47f2d5916a4773
Parents: 0838331
Author: Leif Hedstrom <zw...@apache.org>
Authored: Wed Mar 19 13:33:07 2014 -0700
Committer: Leif Hedstrom <zw...@apache.org>
Committed: Wed Mar 19 13:33:07 2014 -0700

----------------------------------------------------------------------
 proxy/http/HttpSM.cc | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/b749034a/proxy/http/HttpSM.cc
----------------------------------------------------------------------
diff --git a/proxy/http/HttpSM.cc b/proxy/http/HttpSM.cc
index 02ea660..b314bc9 100644
--- a/proxy/http/HttpSM.cc
+++ b/proxy/http/HttpSM.cc
@@ -88,11 +88,8 @@ static uint32_t val[MAX_SCATTER_LEN];
 static uint16_t to[MAX_SCATTER_LEN];
 static int scat_count = 0;
 
-static const char bound[] = "RANGE_SEPARATOR";
-static char const cont_type[] = "Content-type: ";
-static char const cont_range[] = "Content-range: bytes ";
-static const int sub_header_size = sizeof(cont_type) - 1 + 2 + sizeof(cont_range) - 1 + 4;
-static const int boundary_size = 2 + sizeof(bound) - 1 + 2;
+static const int sub_header_size = sizeof("Content-type: ") - 1 + 2 + sizeof("Content-range: bytes ") - 1 + 4;
+static const int boundary_size = 2 + sizeof("RANGE_SEPARATOR") - 1 + 2;
 
 /**
  * Takes two milestones and returns the difference.