You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by jp...@apache.org on 2015/01/27 23:12:46 UTC
trafficserver git commit: Use unsigned indices in HdrTest
Repository: trafficserver
Updated Branches:
refs/heads/master 5893c89dd -> 6c40f8714
Use unsigned indices in HdrTest
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/6c40f871
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/6c40f871
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/6c40f871
Branch: refs/heads/master
Commit: 6c40f8714fea185463769af56c21dee051f14ad7
Parents: 5893c89
Author: James Peach <jp...@apache.org>
Authored: Tue Jan 27 14:12:36 2015 -0800
Committer: James Peach <jp...@apache.org>
Committed: Tue Jan 27 14:12:36 2015 -0800
----------------------------------------------------------------------
proxy/hdrs/HdrTest.cc | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/6c40f871/proxy/hdrs/HdrTest.cc
----------------------------------------------------------------------
diff --git a/proxy/hdrs/HdrTest.cc b/proxy/hdrs/HdrTest.cc
index 11d3e69..abcc5ce 100644
--- a/proxy/hdrs/HdrTest.cc
+++ b/proxy/hdrs/HdrTest.cc
@@ -436,12 +436,12 @@ HdrTest::test_url()
URL url;
const char *start;
const char *end;
- int i, old_length, new_length;
+ int old_length, new_length;
bri_box("test_url");
failed = 0;
- for (i = 0; i < countof(strs); i++) {
+ for (unsigned i = 0; i < countof(strs); i++) {
old_length = (int) strlen(strs[i]);
start = strs[i];
end = start + old_length;
@@ -487,7 +487,7 @@ HdrTest::test_url()
url.destroy();
}
- for (i = 0 ; i < countof(bad) ; ++i) {
+ for (unsigned i = 0 ; i < countof(bad) ; ++i) {
char const* x = bad[i];
url.create(NULL);
err = url.parse(x, strlen(x));