Updated Branches:
  refs/heads/master 5f4b23a2a -> 5503a5e83

Fix a couple of compiler warnings related to header_rewrite and traffic_cop 
changes


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

Branch: refs/heads/master
Commit: 5503a5e83aff72f419077bdcfec3e9e2a2aeca9c
Parents: 5f4b23a
Author: Leif Hedstrom <[email protected]>
Authored: Thu Nov 21 13:43:39 2013 -0700
Committer: Leif Hedstrom <[email protected]>
Committed: Thu Nov 21 13:43:39 2013 -0700

----------------------------------------------------------------------
 cmd/traffic_top/stats.h             | 4 ++--
 plugins/header_rewrite/operators.cc | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/5503a5e8/cmd/traffic_top/stats.h
----------------------------------------------------------------------
diff --git a/cmd/traffic_top/stats.h b/cmd/traffic_top/stats.h
index 87e27a2..ebb9b63 100644
--- a/cmd/traffic_top/stats.h
+++ b/cmd/traffic_top/stats.h
@@ -67,8 +67,8 @@ public:
       }
 
       // set the host
-      int start = _url.find(":");
-      int end = _url.find("/", start + 3);
+      size_t start = _url.find(":");
+      size_t end = _url.find("/", start + 3);
       _host = _url.substr(start + 3, end - start - 3);
       end = _host.find(":");
       if (end != string::npos) {

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/5503a5e8/plugins/header_rewrite/operators.cc
----------------------------------------------------------------------
diff --git a/plugins/header_rewrite/operators.cc 
b/plugins/header_rewrite/operators.cc
index f06b1d0..fda921c 100644
--- a/plugins/header_rewrite/operators.cc
+++ b/plugins/header_rewrite/operators.cc
@@ -494,7 +494,7 @@ OperatorCounter::initialize(Parser& p) {
 }
 
 void
-OperatorCounter::exec(const Resources& res) const
+OperatorCounter::exec(const Resources& /* ATS_UNUSED res */) const
 {
   // Sanity
   if (_counter == TS_ERROR)

Reply via email to