TS-1596 - Fix invalid conversion from 'const char*' to 'char*'.

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

Branch: refs/heads/master
Commit: 0c7c43dcaf2e701b91772bb7e44fa93a1855bb0f
Parents: de35ad0
Author: Phil Sorber <[email protected]>
Authored: Sat Dec 1 16:47:41 2012 -0500
Committer: Phil Sorber <[email protected]>
Committed: Sat Dec 1 16:53:46 2012 -0500

----------------------------------------------------------------------
 .../experimental/channel_stats/channel_stats.cc    |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/0c7c43dc/plugins/experimental/channel_stats/channel_stats.cc
----------------------------------------------------------------------
diff --git a/plugins/experimental/channel_stats/channel_stats.cc 
b/plugins/experimental/channel_stats/channel_stats.cc
index 7cca4e7..3d8aaac 100644
--- a/plugins/experimental/channel_stats/channel_stats.cc
+++ b/plugins/experimental/channel_stats/channel_stats.cc
@@ -150,7 +150,7 @@ static int
 get_query_param(const char *query, const char *param,
                 char *result, int max_length)
 {
-  char *pos = 0;
+  const char *pos = 0;
 
   pos = strstr(query, param); // try to find in querystring of url
   if (pos != query) {
@@ -191,7 +191,7 @@ get_query_param(const char *query, const char *param,
 static int
 has_query_param(const char *query, const char *param, int has_no_value)
 {
-  char *pos = 0;
+  const char *pos = 0;
 
   pos = strstr(query, param); // try to find in querystring of url
   if (pos != query) {

Reply via email to