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:12 UTC

[1/2] git commit: Ignore the new apidefs.h, which is generated

Repository: trafficserver
Updated Branches:
  refs/heads/master df0938afc -> b749034af


Ignore the new apidefs.h, which is generated


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

Branch: refs/heads/master
Commit: 083833120496f3dc01feace969069e745f305c3f
Parents: df0938a
Author: Leif Hedstrom <zw...@apache.org>
Authored: Wed Mar 19 13:29:50 2014 -0700
Committer: Leif Hedstrom <zw...@apache.org>
Committed: Wed Mar 19 13:29:50 2014 -0700

----------------------------------------------------------------------
 .gitignore | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/08383312/.gitignore
----------------------------------------------------------------------
diff --git a/.gitignore b/.gitignore
index 7ba5f45..e14ee33 100644
--- a/.gitignore
+++ b/.gitignore
@@ -50,6 +50,7 @@ cmd/traffic_top/traffic_top
 
 lib/ts/ink_autoconf.h
 lib/ts/ink_config.h
+lib/ts/apidefs.h
 lib/ts/stamp-h1
 lib/ts/CompileParseRules
 lib/ts/ParseRulesCType


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

Posted by zw...@apache.org.
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.