You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by so...@apache.org on 2015/01/22 03:19:05 UTC
trafficserver git commit: Avoid compiler warnings with newer clang
Repository: trafficserver
Updated Branches:
refs/heads/4.2.x 3005b54f2 -> 710c7871d
Avoid compiler warnings with newer clang
(cherry picked from commit b749034af325f26daad91fcefd47f2d5916a4773)
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/710c7871
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/710c7871
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/710c7871
Branch: refs/heads/4.2.x
Commit: 710c7871de72d97bf5dc01f9388f4d703fa5fd1e
Parents: 3005b54
Author: Leif Hedstrom <zw...@apache.org>
Authored: Wed Mar 19 13:33:07 2014 -0700
Committer: Phil Sorber <so...@apache.org>
Committed: Wed Jan 21 19:15:49 2015 -0700
----------------------------------------------------------------------
proxy/http/HttpSM.cc | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/710c7871/proxy/http/HttpSM.cc
----------------------------------------------------------------------
diff --git a/proxy/http/HttpSM.cc b/proxy/http/HttpSM.cc
index 8618728..11f5810 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.