You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by bc...@apache.org on 2010/04/27 21:12:27 UTC

svn commit: r938607 [5/5] - in /incubator/trafficserver/traffic/trunk: ./ iocore/cache/ iocore/cluster/ iocore/dns/ iocore/eventsystem/ iocore/hostdb/ iocore/net/ libinktomi++/ librecords/ proxy/ proxy/api/include/ proxy/congest/ proxy/hdrs/ proxy/http...

Modified: incubator/trafficserver/traffic/trunk/proxy/mgmt2/utils/WebMgmtUtils.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/mgmt2/utils/WebMgmtUtils.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/mgmt2/utils/WebMgmtUtils.h (original)
+++ incubator/trafficserver/traffic/trunk/proxy/mgmt2/utils/WebMgmtUtils.h Tue Apr 27 19:12:22 2010
@@ -108,7 +108,7 @@ InkHashTable *processFormSubmission_noSu
 
 // Shutdown the proxy
 bool ProxyShutdown();
-int processSpawn(char *args[],
+int processSpawn(const char *args[],
                  EnvBlock * env,
                  textBuffer * input_buf, textBuffer * output_buf, bool nowait, bool runAsRoot, bool * truncated = NULL);
 
@@ -121,7 +121,7 @@ void appendDefaultDomain(char *hostname,
 #define SECOND_TO_MILLISECOND_SCALE (1000.0)
 #define PCT_TO_INTPCT_SCALE (100.0)
 void AgInt_generic_scale(char *processVar, char *nodeVar, double factor);
-void AgFloat_generic_scale_to_int(char *processVar, char *nodeVar, double factor);
+void AgFloat_generic_scale_to_int(const char *processVar, const char *nodeVar, double factor);
 
 bool recordValidityCheck(const char *varName, const char *value);
 bool recordRegexCheck(const char *pattern, const char *value);

Modified: incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/MgmtAllow.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/MgmtAllow.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/MgmtAllow.cc (original)
+++ incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/MgmtAllow.cc Tue Apr 27 19:12:22 2010
@@ -121,7 +121,7 @@ MgmtAllow::BuildTable()
 {
   char *tok_state = NULL;
   char *line = NULL;
-  char *errPtr = NULL;
+  const char *errPtr = NULL;
   char errBuf[1024];
   char *file_buf = NULL;
   int line_num = 0;

Modified: incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebConfigRender.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebConfigRender.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebConfigRender.cc (original)
+++ incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebConfigRender.cc Tue Apr 27 19:12:22 2010
@@ -2890,8 +2890,7 @@ writeArmSecurityConfigForm(WebHttpContex
   textBuffer *output = whc->response_bdy;
 
   // write the hidden "filename" tag 
-  HtmlRndrInput(output, HTML_CSS_NONE, HTML_TYPE_HIDDEN, HTML_CONFIG_FILE_TAG, HTML_FILE_ARM_SECURITY_CONFIG, NULL,
-                NULL);
+  HtmlRndrInput(output, HTML_CSS_NONE, HTML_TYPE_HIDDEN, HTML_CONFIG_FILE_TAG, HTML_FILE_ARM_SECURITY_CONFIG, NULL, NULL);
 
   // rule type
   HtmlRndrTrOpen(output, HTML_CSS_NONE, HTML_ALIGN_NONE);
@@ -6412,9 +6411,9 @@ Lerror:
 // writeRuleTypeSelect
 //-------------------------------------------------------------------------
 void
-writeRuleTypeSelect_cache(textBuffer * html, char *listName)
+writeRuleTypeSelect_cache(textBuffer * html, const char *listName)
 {
-  char *options[7];
+  const char *options[7];
   options[0] = "never-cache";
   options[1] = "ignore-no-cache";
   options[2] = "ignore-client-no-cache";
@@ -6427,9 +6426,9 @@ writeRuleTypeSelect_cache(textBuffer * h
 }
 
 void
-writeRuleTypeSelect_arm(textBuffer * html, char *listName)
+writeRuleTypeSelect_arm(textBuffer * html, const char *listName)
 {
-  char *options[3];
+  const char *options[3];
   options[0] = "open";
   options[1] = "deny";
   options[2] = "allow";
@@ -6438,9 +6437,9 @@ writeRuleTypeSelect_arm(textBuffer * htm
 }
 
 void
-writeRuleTypeSelect_filter(textBuffer * html, char *listName)
+writeRuleTypeSelect_filter(textBuffer * html, const char *listName)
 {
-  char *options[6];
+  const char *options[6];
   options[0] = "allow";
   options[1] = "deny";
   options[2] = "ldap";
@@ -6452,9 +6451,9 @@ writeRuleTypeSelect_filter(textBuffer * 
 }
 
 void
-writeRuleTypeSelect_remap(textBuffer * html, char *listName)
+writeRuleTypeSelect_remap(textBuffer * html, const char *listName)
 {
-  char *options[4];
+  const char *options[4];
   options[0] = "map";
   options[1] = "reverse_map";
   options[2] = "redirect";
@@ -6464,9 +6463,9 @@ writeRuleTypeSelect_remap(textBuffer * h
 }
 
 void
-writeRuleTypeSelect_socks(textBuffer * html, char *listName)
+writeRuleTypeSelect_socks(textBuffer * html, const char *listName)
 {
-  char *options[3];
+  const char *options[3];
   options[0] = "no_socks";
   options[1] = "auth";
   options[2] = "multiple_socks";
@@ -6475,9 +6474,9 @@ writeRuleTypeSelect_socks(textBuffer * h
 }
 
 void
-writeRuleTypeSelect_bypass(textBuffer * html, char *listName)
+writeRuleTypeSelect_bypass(textBuffer * html, const char *listName)
 {
-  char *options[2];
+  const char *options[2];
   options[0] = "bypass";
   options[1] = "deny_dyn_bypass";
 
@@ -6488,9 +6487,9 @@ writeRuleTypeSelect_bypass(textBuffer * 
 // writeConnTypeSelect
 //-------------------------------------------------------------------------
 void
-writeConnTypeSelect(textBuffer * html, char *listName)
+writeConnTypeSelect(textBuffer * html, const char *listName)
 {
-  char *options[2];
+  const char *options[2];
   options[0] = "tcp";
   options[1] = "udp";
 
@@ -6501,9 +6500,9 @@ writeConnTypeSelect(textBuffer * html, c
 // writeIpActionSelect
 //-------------------------------------------------------------------------
 void
-writeIpActionSelect(textBuffer * html, char *listName)
+writeIpActionSelect(textBuffer * html, const char *listName)
 {
-  char *options[2];
+  const char *options[2];
   options[0] = "ip_allow";
   options[1] = "ip_deny";
 
@@ -6515,9 +6514,9 @@ writeIpActionSelect(textBuffer * html, c
 // writePdTypeSelect
 //-------------------------------------------------------------------------
 void
-writePdTypeSelect(textBuffer * html, char *listName)
+writePdTypeSelect(textBuffer * html, const char *listName)
 {
-  char *options[4];
+  const char *options[4];
   options[0] = "dest_domain";
   options[1] = "dest_host";
   options[2] = "dest_ip";
@@ -6527,9 +6526,9 @@ writePdTypeSelect(textBuffer * html, cha
 }
 
 void
-writePdTypeSelect_splitdns(textBuffer * html, char *listName)
+writePdTypeSelect_splitdns(textBuffer * html, const char *listName)
 {
-  char *options[3];
+  const char *options[3];
   options[0] = "dest_domain";
   options[1] = "dest_host";
   options[2] = "url_regex";
@@ -6538,9 +6537,9 @@ writePdTypeSelect_splitdns(textBuffer * 
 }
 
 void
-writePdTypeSelect_hosting(textBuffer * html, char *listName)
+writePdTypeSelect_hosting(textBuffer * html, const char *listName)
 {
-  char *options[2];
+  const char *options[2];
   options[0] = "domain";
   options[1] = "hostname";
 
@@ -6552,7 +6551,7 @@ writePdTypeSelect_hosting(textBuffer * h
 //-------------------------------------------------------------------------
 // some files may/may not include the PUSH option in their list. 
 void
-writeMethodSelect_push(textBuffer * html, char *listName)
+writeMethodSelect_push(textBuffer * html, const char *listName)
 {
   // PUSH option is enabledwith proxy.config.http.push_method_enabled
   bool found;
@@ -6561,7 +6560,7 @@ writeMethodSelect_push(textBuffer * html
            == REC_ERR_OKAY);
   int push_enabled = (int) rec_int;
   if (found && push_enabled) {  // PUSH enabled
-    char *options[6];
+    const char *options[6];
     options[0] = "";
     options[1] = "get";
     options[2] = "post";
@@ -6575,9 +6574,9 @@ writeMethodSelect_push(textBuffer * html
 }
 
 void
-writeMethodSelect(textBuffer * html, char *listName)
+writeMethodSelect(textBuffer * html, const char *listName)
 {
-  char *options[5];
+  const char *options[5];
   options[0] = "";
   options[1] = "get";
   options[2] = "post";
@@ -6591,9 +6590,9 @@ writeMethodSelect(textBuffer * html, cha
 // writeSchemeSelect
 //-------------------------------------------------------------------------
 void
-writeSchemeSelect(textBuffer * html, char *listName)
+writeSchemeSelect(textBuffer * html, const char *listName)
 {
-  char *options[6];
+  const char *options[6];
   options[0] = "";
   options[1] = "http";
   options[2] = "https";
@@ -6605,9 +6604,9 @@ writeSchemeSelect(textBuffer * html, cha
 }
 
 void
-writeSchemeSelect_partition(textBuffer * html, char *listName)
+writeSchemeSelect_partition(textBuffer * html, const char *listName)
 {
-  char *options[2];
+  const char *options[2];
   options[0] = "http";
   options[1] = "mixt";
 
@@ -6615,9 +6614,9 @@ writeSchemeSelect_partition(textBuffer *
 }
 
 void
-writeSchemeSelect_remap(textBuffer * html, char *listName)
+writeSchemeSelect_remap(textBuffer * html, const char *listName)
 {
-  char *options[5];
+  const char *options[5];
   options[0] = "http";
   options[1] = "https";
   options[2] = "ftp";
@@ -6631,9 +6630,9 @@ writeSchemeSelect_remap(textBuffer * htm
 // writeMixtSelect
 //-------------------------------------------------------------------------
 void
-writeMixtSelect(textBuffer * html, char *listName)
+writeMixtSelect(textBuffer * html, const char *listName)
 {
-  char *options[3];
+  const char *options[3];
   options[0] = "";
   options[1] = "RNI";
   options[2] = "QT";
@@ -6645,9 +6644,9 @@ writeMixtSelect(textBuffer * html, char 
 // writeHeaderTypeSelect
 //-------------------------------------------------------------------------
 void
-writeHeaderTypeSelect(textBuffer * html, char *listName)
+writeHeaderTypeSelect(textBuffer * html, const char *listName)
 {
-  char *options[5];
+  const char *options[5];
   options[0] = "";
   options[1] = "date";
   options[2] = "host";
@@ -6661,9 +6660,9 @@ writeHeaderTypeSelect(textBuffer * html,
 // writeCacheTypeSelect
 //-------------------------------------------------------------------------
 void
-writeCacheTypeSelect(textBuffer * html, char *listName)
+writeCacheTypeSelect(textBuffer * html, const char *listName)
 {
-  char *options[2];
+  const char *options[2];
   options[0] = "parent";
   options[1] = "sibling";
 
@@ -6674,9 +6673,9 @@ writeCacheTypeSelect(textBuffer * html, 
 // writeMcTtlSelect
 //-------------------------------------------------------------------------
 void
-writeMcTtlSelect(textBuffer * html, char *listName)
+writeMcTtlSelect(textBuffer * html, const char *listName)
 {
-  char *options[2];
+  const char *options[2];
   options[0] = "single subnet";
   options[1] = "multiple subnets";
 
@@ -6687,9 +6686,9 @@ writeMcTtlSelect(textBuffer * html, char
 // writeOnOffSelect
 //-------------------------------------------------------------------------
 void
-writeOnOffSelect(textBuffer * html, char *listName)
+writeOnOffSelect(textBuffer * html, const char *listName)
 {
-  char *options[2];
+  const char *options[2];
   options[0] = "off";
   options[1] = "on";
 
@@ -6700,9 +6699,9 @@ writeOnOffSelect(textBuffer * html, char
 // writeDenySelect
 //-------------------------------------------------------------------------
 void
-writeDenySelect(textBuffer * html, char *listName)
+writeDenySelect(textBuffer * html, const char *listName)
 {
-  char *options[2];
+  const char *options[2];
   options[0] = "";
   options[1] = "deny";
 
@@ -6713,9 +6712,9 @@ writeDenySelect(textBuffer * html, char 
 // writeClientGroupTypeSelect
 //-------------------------------------------------------------------------
 void
-writeClientGroupTypeSelect(textBuffer * html, char *listName)
+writeClientGroupTypeSelect(textBuffer * html, const char *listName)
 {
-  char *options[3];
+  const char *options[3];
   options[0] = "ip";
   options[1] = "domain";
   options[2] = "hostname";
@@ -6727,9 +6726,9 @@ writeClientGroupTypeSelect(textBuffer * 
 // writeAccessTypeSelect
 //-------------------------------------------------------------------------
 void
-writeAccessTypeSelect(textBuffer * html, char *listName)
+writeAccessTypeSelect(textBuffer * html, const char *listName)
 {
-  char *options[5];
+  const char *options[5];
   options[0] = "allow";
   options[1] = "deny";
   options[2] = "basic";
@@ -6743,9 +6742,9 @@ writeAccessTypeSelect(textBuffer * html,
 // writeTreatmentTypeSelect
 //-------------------------------------------------------------------------
 void
-writeTreatmentTypeSelect(textBuffer * html, char *listName)
+writeTreatmentTypeSelect(textBuffer * html, const char *listName)
 {
-  char *options[7];
+  const char *options[7];
   options[0] = "";
   options[1] = "feed";
   options[2] = "push";
@@ -6761,9 +6760,9 @@ writeTreatmentTypeSelect(textBuffer * ht
 // writeRoundRobinTypeSelect
 //-------------------------------------------------------------------------
 void
-writeRoundRobinTypeSelect(textBuffer * html, char *listName)
+writeRoundRobinTypeSelect(textBuffer * html, const char *listName)
 {
-  char *options[4];
+  const char *options[4];
   options[0] = "";
   options[1] = "true";
   options[2] = "strict";
@@ -6773,9 +6772,9 @@ writeRoundRobinTypeSelect(textBuffer * h
 }
 
 void
-writeRoundRobinTypeSelect_notrue(textBuffer * html, char *listName)
+writeRoundRobinTypeSelect_notrue(textBuffer * html, const char *listName)
 {
-  char *options[3];
+  const char *options[3];
   options[0] = "";
   options[1] = "strict";
   options[2] = "false";
@@ -6788,9 +6787,9 @@ writeRoundRobinTypeSelect_notrue(textBuf
 // writeTrueFalseSelect
 //-------------------------------------------------------------------------
 void
-writeTrueFalseSelect(textBuffer * html, char *listName)
+writeTrueFalseSelect(textBuffer * html, const char *listName)
 {
-  char *options[2];
+  const char *options[2];
   options[0] = "false";
   options[1] = "true";
 
@@ -6801,9 +6800,9 @@ writeTrueFalseSelect(textBuffer * html, 
 // writeSizeFormatSelect
 //-------------------------------------------------------------------------
 void
-writeSizeFormatSelect(textBuffer * html, char *listName)
+writeSizeFormatSelect(textBuffer * html, const char *listName)
 {
-  char *options[2];
+  const char *options[2];
   options[0] = "absolute";
   options[1] = "percent";
 
@@ -6814,9 +6813,9 @@ writeSizeFormatSelect(textBuffer * html,
 // writeProtocolSelect
 //-------------------------------------------------------------------------
 void
-writeProtocolSelect(textBuffer * html, char *listName)
+writeProtocolSelect(textBuffer * html, const char *listName)
 {
-  char *options[2];
+  const char *options[2];
   options[0] = "";
   options[1] = "dns";
 

Modified: incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebConfigRender.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebConfigRender.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebConfigRender.h (original)
+++ incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebConfigRender.h Tue Apr 27 19:12:22 2010
@@ -188,35 +188,35 @@ int convert_pdss_to_html_format(INKPdSsF
 
 //------------------------- SELECT FUNCTIONS ------------------------------
 
-void writeRuleTypeSelect_arm(textBuffer * html, char *listName);
-void writeRuleTypeSelect_cache(textBuffer * html, char *listName);
-void writeRuleTypeSelect_filter(textBuffer * html, char *listName);
-void writeRuleTypeSelect_remap(textBuffer * html, char *listName);
-void writeRuleTypeSelect_socks(textBuffer * html, char *listName);
-void writeRuleTypeSelect_bypass(textBuffer * html, char *listName);
-void writeConnTypeSelect(textBuffer * html, char *listName);
-void writeIpActionSelect(textBuffer * html, char *listName);
-void writePdTypeSelect(textBuffer * html, char *listName);
-void writePdTypeSelect_hosting(textBuffer * html, char *listName);
-void writePdTypeSelect_splitdns(textBuffer * html, char *listName);
-void writeMethodSelect(textBuffer * html, char *listName);
-void writeMethodSelect_push(textBuffer * html, char *listName);
-void writeSchemeSelect(textBuffer * html, char *listName);
-void writeSchemeSelect_partition(textBuffer * html, char *listName);
-void writeSchemeSelect_remap(textBuffer * html, char *listName);
-void writeMixtSelect(textBuffer * html, char *listName);
-void writeHeaderTypeSelect(textBuffer * html, char *listName);
-void writeCacheTypeSelect(textBuffer * html, char *listName);
-void writeMcTtlSelect(textBuffer * html, char *listName);
-void writeOnOffSelect(textBuffer * html, char *listName);
-void writeDenySelect(textBuffer * html, char *listName);
-void writeClientGroupTypeSelect(textBuffer * html, char *listName);
-void writeAccessTypeSelect(textBuffer * html, char *listName);
-void writeTreatmentTypeSelect(textBuffer * html, char *listName);
-void writeRoundRobinTypeSelect(textBuffer * html, char *listName);
-void writeRoundRobinTypeSelect_notrue(textBuffer * html, char *listName);
-void writeTrueFalseSelect(textBuffer * html, char *listName);
-void writeSizeFormatSelect(textBuffer * html, char *listName);
-void writeProtocolSelect(textBuffer * html, char *listName);
+void writeRuleTypeSelect_arm(textBuffer * html, const char *listName);
+void writeRuleTypeSelect_cache(textBuffer * html, const char *listName);
+void writeRuleTypeSelect_filter(textBuffer * html, const char *listName);
+void writeRuleTypeSelect_remap(textBuffer * html, const char *listName);
+void writeRuleTypeSelect_socks(textBuffer * html, const char *listName);
+void writeRuleTypeSelect_bypass(textBuffer * html, const char *listName);
+void writeConnTypeSelect(textBuffer * html, const char *listName);
+void writeIpActionSelect(textBuffer * html, const char *listName);
+void writePdTypeSelect(textBuffer * html, const char *listName);
+void writePdTypeSelect_hosting(textBuffer * html, const char *listName);
+void writePdTypeSelect_splitdns(textBuffer * html, const char *listName);
+void writeMethodSelect(textBuffer * html, const char *listName);
+void writeMethodSelect_push(textBuffer * html, const char *listName);
+void writeSchemeSelect(textBuffer * html, const char *listName);
+void writeSchemeSelect_partition(textBuffer * html, const char *listName);
+void writeSchemeSelect_remap(textBuffer * html, const char *listName);
+void writeMixtSelect(textBuffer * html, const char *listName);
+void writeHeaderTypeSelect(textBuffer * html, const char *listName);
+void writeCacheTypeSelect(textBuffer * html, const char *listName);
+void writeMcTtlSelect(textBuffer * html, const char *listName);
+void writeOnOffSelect(textBuffer * html, const char *listName);
+void writeDenySelect(textBuffer * html, const char *listName);
+void writeClientGroupTypeSelect(textBuffer * html, const char *listName);
+void writeAccessTypeSelect(textBuffer * html, const char *listName);
+void writeTreatmentTypeSelect(textBuffer * html, const char *listName);
+void writeRoundRobinTypeSelect(textBuffer * html, const char *listName);
+void writeRoundRobinTypeSelect_notrue(textBuffer * html, const char *listName);
+void writeTrueFalseSelect(textBuffer * html, const char *listName);
+void writeSizeFormatSelect(textBuffer * html, const char *listName);
+void writeProtocolSelect(textBuffer * html, const char *listName);
 
 #endif // _WEB_CONFIG_RENDER_H_

Modified: incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebHttp.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebHttp.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebHttp.cc (original)
+++ incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebHttp.cc Tue Apr 27 19:12:22 2010
@@ -148,7 +148,7 @@ record_version_valid(char *record_versio
 //-------------------------------------------------------------------------
 
 static bool
-set_record_value(WebHttpContext * whc, char *rec, char *value)
+set_record_value(WebHttpContext * whc, const char *rec, const char *value)
 {
   MgmtData varValue;
   char *record;
@@ -187,7 +187,7 @@ set_record_value(WebHttpContext * whc, c
 
 #ifndef _WIN32
       if (script) {
-        char *args[MAX_ARGS + 1];
+        const char *args[MAX_ARGS + 1];
         for (int i = 0; i < MAX_ARGS; i++)
           args[i] = NULL;
         script_path = WebHttpAddDocRoot_Xmalloc(whc, script);
@@ -371,7 +371,7 @@ spawn_cgi(WebHttpContext * whc, const ch
     query_string_tb.copyFrom(query_string, qlen);
   }
 #ifndef _WIN32
-  if (processSpawn((char **) &a[0], &env, &query_string_tb, replyMsg, nowait, run_as_root) != 0) {
+  if (processSpawn(&a[0], &env, &query_string_tb, replyMsg, nowait, run_as_root) != 0) {
     mgmt_elog(stderr, "[spawn_cgi] Unable to fork child process\n");
     WebHttpSetErrorResponse(whc, STATUS_INTERNAL_SERVER_ERROR);
     answerHdr->setStatus(STATUS_INTERNAL_SERVER_ERROR);
@@ -680,8 +680,8 @@ handle_chart(WebHttpContext * whc, const
   const int totalNumGraphs = 10;
   char numGraphStr[8];
   char *theGraphs[totalNumGraphs];
-  char *theGraphNames[totalNumGraphs];
-  char *graphNames[] = {
+  const char *theGraphNames[totalNumGraphs];
+  const char *graphNames[] = {
     "Document Hit Rate", "Bandwidth Savings", "Cache Percent Free",
     "Open Server Connections", "Open Client Connections",
     "Cache Transfers In Progress", "Client Throughput",
@@ -885,18 +885,18 @@ handle_record_info(WebHttpContext * whc,
   int num_records;
 
   char line[LINE_SIZE];
-  char *random_html;
+  const char *random_html;
   char cur_value[BUF_SIZE + 1];
   char *cur_value_safe;
   char def_value_rec[BUF_SIZE + 1];
-  char *def_value;
+  const char *def_value;
   char *def_value_safe;
-  char *title;
+  const char *title;
 
-  char *rec_type_a[RECT_MAX];
-  char *data_type_a[RECD_MAX];
-  char *type_a[MAX_RECORD_TYPE];
-  char *value_type_a[MAX_MGMT_TYPE];
+  const char *rec_type_a[RECT_MAX];
+  const char *data_type_a[RECD_MAX];
+  const char *type_a[MAX_RECORD_TYPE];
+  const char *value_type_a[MAX_MGMT_TYPE];
 
   bool found;
   bool same;
@@ -2131,7 +2131,7 @@ handle_submit_snapshot(WebHttpContext * 
           char args[256];
           RecGetRecordString_Xmalloc("proxy.config.snapshot_dir", &snapDirFromRecordsConf);
           ink_snprintf(args, sizeof(args), "cp -fr %s/%s %s", floppyMountPoint, snap_name, snapDirFromRecordsConf);
-          char *argv[] = { args,
+          const char *argv[] = { args,
             NULL
           };
           processSpawn(argv, NULL, NULL, NULL, false, false);
@@ -2922,7 +2922,7 @@ handle_submit_snapshot_to_floppy(WebHttp
   char *record_version;
   char *UnmountFloppy;
   int old_euid;
-  char *linkFile;
+  const char *linkFile;
 #if defined(OEM)
   char *NWSnapshotType;
 #endif
@@ -3943,7 +3943,8 @@ handle_submit_net_config(WebHttpContext 
   //  int nic_up[5];
   char *dns_ip[3], old_value[265], old_hostname[80], old_gw_ip[80];
   char nic_name[5][10], *nic[5][6], interface[80], *param, *old_ip[5];
-  char *hostname = 0, *gw_ip = 0, *dn = 0;
+  char *hostname = 0, *gw_ip = 0;
+  const char *dn = 0;
   int i, j, no;
   char dns_ips[80];
   bool warning, fail, rni;

Modified: incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebHttpMessage.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebHttpMessage.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebHttpMessage.cc (original)
+++ incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebHttpMessage.cc Tue Apr 27 19:12:22 2010
@@ -642,7 +642,7 @@ httpResponse::setContentType(const char 
 }
 
 void
-httpResponse::setRealm(char *realm)
+httpResponse::setRealm(const char *realm)
 {
   if (realm != NULL) {
     authRealm = xstrdup(realm);

Modified: incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebHttpMessage.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebHttpMessage.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebHttpMessage.h (original)
+++ incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebHttpMessage.h Tue Apr 27 19:12:22 2010
@@ -287,7 +287,7 @@ public:
   };
   void setLocationURL(const char *url);
 
-  void setRealm(char *);
+  void setRealm(const char *);
   void setLastMod(time_t lm)
   {
     lastMod = lm;

Modified: incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebHttpRender.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebHttpRender.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebHttpRender.cc (original)
+++ incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebHttpRender.cc Tue Apr 27 19:12:22 2010
@@ -117,7 +117,7 @@ WebHttpGetTopLevelRndrFile_Xmalloc(WebHt
 // WebHttpGetIntFromQuery
 //-------------------------------------------------------------------------
 void
-WebHttpGetIntFromQuery(WebHttpContext * whc, char *tag, int *active_id)
+WebHttpGetIntFromQuery(WebHttpContext * whc, const char *tag, int *active_id)
 {
   char *active_str;
 
@@ -515,7 +515,7 @@ handle_config_input_form(WebHttpContext 
 // Creates a select list where the options are the strings passed in 
 // the options array. Assuming the value and text of the option are the same. 
 int
-HtmlRndrSelectList(textBuffer * html, char *listName, char *options[], int numOpts)
+HtmlRndrSelectList(textBuffer * html, const char *listName, const char *options[], int numOpts)
 {
   if (!listName || !options)
     return WEB_HTTP_ERR_FAIL;
@@ -1197,7 +1197,7 @@ handle_ftp_select(WebHttpContext * whc)
 
       SimpleTokenizer snapDirPathTok(ftpOutput, ' ');
       int numOptions = snapDirPathTok.getNumTokensRemaining();
-      char *default_text = "- select a snapshot -";
+      const char *default_text = "- select a snapshot -";
 
       HtmlRndrTrOpen(output, HTML_CSS_NONE, HTML_ALIGN_NONE);
       HtmlRndrTdOpen(output, HTML_CSS_CONFIGURE_LABEL, HTML_ALIGN_NONE, HTML_VALIGN_NONE, NULL, "2", 2);
@@ -1347,7 +1347,7 @@ handle_floppy_select(WebHttpContext * wh
         // Not used here.
         //fileEntry* fileListEntry;
         textBuffer *output = whc->response_bdy;
-        char *default_text = "- select a snapshot -";
+        const char *default_text = "- select a snapshot -";
 
         dir = opendir(floppy_drive_mount_point);
 
@@ -1553,7 +1553,7 @@ handle_sessionid(WebHttpContext * whc, c
 // handle_select_*_logs
 //-------------------------------------------------------------------------
 static bool
-readable(char *file, MgmtInt * size)
+readable(const char *file, MgmtInt * size)
 {
   WebHandle h_file;
   if ((h_file = WebFileOpenR(file)) == WEB_HANDLE_INVALID) {
@@ -1565,7 +1565,7 @@ readable(char *file, MgmtInt * size)
 }
 
 static bool
-selected_log(WebHttpContext * whc, char *file)
+selected_log(WebHttpContext * whc, const char *file)
 {
   char *selected_file;
   InkHashTable *ht = whc->post_data_ht;
@@ -1580,7 +1580,7 @@ selected_log(WebHttpContext * whc, char 
 }
 
 static void
-render_option(textBuffer * output, char *value, char *display, bool selected)
+render_option(textBuffer * output, const char *value, char *display, bool selected)
 {
   HtmlRndrOptionOpen(output, value, selected);
   output->copyFrom(display, strlen(display));
@@ -1593,8 +1593,8 @@ render_option(textBuffer * output, char 
 static int
 handle_select_system_logs(WebHttpContext * whc, char *tag, char *arg)
 {
-  char *syslog_path = NULL;
-  char *syslog = NULL;
+  const char *syslog_path = NULL;
+  const char *syslog = NULL;
   char tmp[MAX_TMP_BUF_LEN + 1];
   char tmp2[MAX_TMP_BUF_LEN + 1];
   char tmp3[MAX_TMP_BUF_LEN + 1];
@@ -1730,7 +1730,7 @@ handle_select_debug_logs(WebHttpContext 
 
   struct dirent *dent;
   DIR *dirp;
-  char *debug_logs[] = {
+  const char *debug_logs[] = {
     "diags.log",
     "manager.log",
     "lm.log"
@@ -1806,7 +1806,7 @@ handle_log_action(WebHttpContext * whc, 
   bool truncated;
 
   if (arg) {
-    char *args[MAX_ARGS + 1];
+    const char *args[MAX_ARGS + 1];
     for (int i = 0; i < MAX_ARGS + 1; i++)
       args[i] = NULL;
 
@@ -2427,8 +2427,7 @@ handle_cache_regex_query(WebHttpContext 
                   // display document lookup link
                   ink_snprintf(tmp, MAX_TMP_BUF_LEN, "%s?url_op=%s&url=%s", HTML_SUBMIT_INSPECTOR_DPY_FILE, cache_op,
                                url);
-                  HtmlRndrAOpen(output, HTML_CSS_GRAPH, tmp, "display",
-                                "window.open('display', 'width=350, height=400')");
+                  HtmlRndrAOpen(output, HTML_CSS_GRAPH, tmp, "display", "window.open('display', 'width=350, height=400')");
                   output->copyFrom(url, url_size);
                   HtmlRndrAClose(output);
                 } else {
@@ -4159,7 +4158,7 @@ Ldone:
 //-------------------------------------------------------------------------
 
 int
-HtmlRndrTrOpen(textBuffer * html, HtmlCss css, HtmlAlign align)
+HtmlRndrTrOpen(textBuffer * html, const HtmlCss css, const HtmlAlign align)
 {
   char tmp[MAX_TMP_BUF_LEN + 1];
   html->copyFrom("<tr", 3);
@@ -4181,7 +4180,7 @@ HtmlRndrTrOpen(textBuffer * html, HtmlCs
 
 int
 HtmlRndrTdOpen(textBuffer * html,
-               HtmlCss css, HtmlAlign align, HtmlValign valign, char *width, char *height, int colspan, char *bg)
+               const HtmlCss css, const HtmlAlign align, const HtmlValign valign, const char *width, const char *height, int colspan, const char *bg)
 {
   char tmp[MAX_TMP_BUF_LEN + 1];
   html->copyFrom("<td", 3);
@@ -4222,7 +4221,7 @@ HtmlRndrTdOpen(textBuffer * html,
 //-------------------------------------------------------------------------
 
 int
-HtmlRndrAOpen(textBuffer * html, HtmlCss css, char *href, char *target, char *onclick)
+HtmlRndrAOpen(textBuffer * html, const HtmlCss css, const char *href, const char *target, const char *onclick)
 {
   char tmp[512 + 1];            // larger, since href's can be lengthy
   html->copyFrom("<a", 2);
@@ -4251,7 +4250,7 @@ HtmlRndrAOpen(textBuffer * html, HtmlCss
 //-------------------------------------------------------------------------
 
 int
-HtmlRndrFormOpen(textBuffer * html, char *name, HtmlMethod method, char *action)
+HtmlRndrFormOpen(textBuffer * html, const char *name, const HtmlMethod method, const char *action)
 {
   char tmp[MAX_TMP_BUF_LEN + 1];
   html->copyFrom("<form", 5);
@@ -4276,7 +4275,7 @@ HtmlRndrFormOpen(textBuffer * html, char
 //-------------------------------------------------------------------------
 
 int
-HtmlRndrTextareaOpen(textBuffer * html, HtmlCss css, int cols, int rows, HtmlWrap wrap, char *name, bool readonly)
+HtmlRndrTextareaOpen(textBuffer * html, const HtmlCss css, int cols, int rows, const HtmlWrap wrap, const char *name, bool readonly)
 {
   char tmp[MAX_TMP_BUF_LEN + 1];
   html->copyFrom("<textarea", 9);
@@ -4313,7 +4312,7 @@ HtmlRndrTextareaOpen(textBuffer * html, 
 //-------------------------------------------------------------------------
 
 int
-HtmlRndrTableOpen(textBuffer * html, char *width, int border, int cellspacing, int cellpadding, char *bordercolor)
+HtmlRndrTableOpen(textBuffer * html, const char *width, int border, int cellspacing, int cellpadding, const char *bordercolor)
 {
   char tmp[MAX_TMP_BUF_LEN + 1];
   html->copyFrom("<table", 6);
@@ -4340,7 +4339,7 @@ HtmlRndrTableOpen(textBuffer * html, cha
 //-------------------------------------------------------------------------
 
 int
-HtmlRndrSpanOpen(textBuffer * html, HtmlCss css)
+HtmlRndrSpanOpen(textBuffer * html, const HtmlCss css)
 {
   char tmp[MAX_TMP_BUF_LEN + 1];
   html->copyFrom("<span", 5);
@@ -4357,7 +4356,7 @@ HtmlRndrSpanOpen(textBuffer * html, Html
 //-------------------------------------------------------------------------
 
 int
-HtmlRndrSelectOpen(textBuffer * html, HtmlCss css, char *name, int size)
+HtmlRndrSelectOpen(textBuffer * html, const HtmlCss css, const char *name, int size)
 {
   char tmp[MAX_TMP_BUF_LEN + 1];
   html->copyFrom("<select", 7);
@@ -4382,7 +4381,7 @@ HtmlRndrSelectOpen(textBuffer * html, Ht
 //-------------------------------------------------------------------------
 
 int
-HtmlRndrOptionOpen(textBuffer * html, char *value, bool selected)
+HtmlRndrOptionOpen(textBuffer * html, const char *value, bool selected)
 {
   char tmp[MAX_TMP_BUF_LEN + 1];
   html->copyFrom("<option", 7);
@@ -4402,7 +4401,7 @@ HtmlRndrOptionOpen(textBuffer * html, ch
 //-------------------------------------------------------------------------
 
 int
-HtmlRndrPreOpen(textBuffer * html, HtmlCss css, char *width)
+HtmlRndrPreOpen(textBuffer * html, const HtmlCss css, const char *width)
 {
   char tmp[MAX_TMP_BUF_LEN + 1];
   html->copyFrom("<PRE", 4);
@@ -4593,7 +4592,7 @@ HtmlRndrInput(textBuffer * html,
 }
 #else
 int
-HtmlRndrInput(textBuffer * html, HtmlCss css, HtmlType type, char *name, char *value, char *target, char *onclick)
+HtmlRndrInput(textBuffer * html, const HtmlCss css, const HtmlType type, const char *name, const char *value, const char *target, const char *onclick)
 {
   char tmp[MAX_TMP_BUF_LEN + 1];
   html->copyFrom("<input", 6);
@@ -4698,7 +4697,7 @@ HtmlRndrSpace(textBuffer * html, int num
 //-------------------------------------------------------------------------
 
 int
-HtmlRndrText(textBuffer * html, MgmtHashTable * dict_ht, HtmlId text_id)
+HtmlRndrText(textBuffer * html, MgmtHashTable * dict_ht, const HtmlId text_id)
 {
   char *value;
   if (dict_ht->mgmt_hash_table_lookup(text_id, (void **) &value)) {
@@ -4716,7 +4715,7 @@ HtmlRndrText(textBuffer * html, MgmtHash
 //-------------------------------------------------------------------------
 
 int
-HtmlRndrImg(textBuffer * html, char *src, char *border, char *width, char *height, char *hspace)
+HtmlRndrImg(textBuffer * html, const char *src, const char *border, const char *width, const char *height, const char *hspace)
 {
   char tmp[MAX_TMP_BUF_LEN + 1];
   html->copyFrom("<img", 4);

Modified: incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebHttpRender.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebHttpRender.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebHttpRender.h (original)
+++ incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebHttpRender.h Tue Apr 27 19:12:22 2010
@@ -606,18 +606,18 @@ int WebHttpRender(WebHttpContext * whc, 
 // html rendering
 //-------------------------------------------------------------------------
 
-int HtmlRndrTrOpen(textBuffer * html, HtmlCss css, HtmlAlign align);
-int HtmlRndrTdOpen(textBuffer * html, HtmlCss css, HtmlAlign align, HtmlValign valign, char *width, char *height,
-                   int colspan, char *bg = NULL);
-int HtmlRndrAOpen(textBuffer * html, HtmlCss css, char *href, char *target, char *onclick = NULL);
-int HtmlRndrFormOpen(textBuffer * html, char *name, HtmlMethod method, char *action);
-int HtmlRndrTextareaOpen(textBuffer * html, HtmlCss css, int cols, int rows, HtmlWrap wrap, char *name, bool readonly);
-int HtmlRndrTableOpen(textBuffer * html, char *width, int border, int cellspacing, int cellpadding, char *bordercolor =
-                      NULL);
-int HtmlRndrSpanOpen(textBuffer * html, HtmlCss css);
-int HtmlRndrSelectOpen(textBuffer * html, HtmlCss css, char *name, int size);
-int HtmlRndrOptionOpen(textBuffer * html, char *value, bool selected);
-int HtmlRndrPreOpen(textBuffer * html, HtmlCss css, char *width);
+int HtmlRndrTrOpen(textBuffer * html, const HtmlCss css, const HtmlAlign align);
+int HtmlRndrTdOpen(textBuffer * html, const HtmlCss css, const HtmlAlign align, const HtmlValign valign, const char *width, const char *height,
+                   int colspan, const char *bg = NULL);
+int HtmlRndrAOpen(textBuffer * html, const HtmlCss css, const char *href, const char *target, const char *onclick = NULL);
+int HtmlRndrFormOpen(textBuffer * html, const char *name, const HtmlMethod method, const char *action);
+int HtmlRndrTextareaOpen(textBuffer * html, const HtmlCss css, int cols, int rows, const HtmlWrap wrap, const char *name, bool readonly);
+int HtmlRndrTableOpen(textBuffer * html, const char *width, int border, int cellspacing, int cellpadding,
+                      const char *bordercolor = NULL);
+int HtmlRndrSpanOpen(textBuffer * html, const HtmlCss css);
+int HtmlRndrSelectOpen(textBuffer * html, const HtmlCss css, const char *name, int size);
+int HtmlRndrOptionOpen(textBuffer * html, const char *value, bool selected);
+int HtmlRndrPreOpen(textBuffer * html, const HtmlCss css, const char *width);
 int HtmlRndrUlOpen(textBuffer * html);
 
 int HtmlRndrTrClose(textBuffer * html);
@@ -636,7 +636,7 @@ int HtmlRndrUlClose(textBuffer * html);
 int HtmlRndrInput(textBuffer * html, HtmlCss css, HtmlType type, char *name, char *value, char *target, char *onclick,
                   char *size = NULL);
 #else
-int HtmlRndrInput(textBuffer * html, HtmlCss css, HtmlType type, char *name, char *value, char *target, char *onclick);
+int HtmlRndrInput(textBuffer * html, const HtmlCss css, const HtmlType type, const char *name, const char *value, const char *target, const char *onclick);
 #endif
 
 int HtmlRndrInput(textBuffer * html, MgmtHashTable * dict_ht, HtmlCss css, HtmlType type, char *name, HtmlId value_id);
@@ -644,11 +644,11 @@ int HtmlRndrBr(textBuffer * html);
 int HtmlRndrLi(textBuffer * html);
 
 int HtmlRndrSpace(textBuffer * html, int num_spaces);
-int HtmlRndrText(textBuffer * html, MgmtHashTable * dict_ht, HtmlId text_id);
+int HtmlRndrText(textBuffer * html, MgmtHashTable * dict_ht, const HtmlId text_id);
 
-int HtmlRndrImg(textBuffer * html, char *src, char *border, char *width, char *height, char *hspace);
+int HtmlRndrImg(textBuffer * html, const char *src, const char *border, const char *width, const char *height, const char *hspace);
 int HtmlRndrDotClear(textBuffer * html, int width, int height);
-int HtmlRndrSelectList(textBuffer * html, char *listName, char *options[], int numOpts);
+int HtmlRndrSelectList(textBuffer * html, const char *listName, const char *options[], int numOpts);
 
 #ifdef OEM
 int getMaximumClientConnections();

Modified: incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebHttpTree.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebHttpTree.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebHttpTree.cc (original)
+++ incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebHttpTree.cc Tue Apr 27 19:12:22 2010
@@ -67,7 +67,7 @@
 
 struct tree_node
 {
-  char *name;                   // name of this node
+  const char *name;             // name of this node
   char *enabled;                // config record to check if this node enabled (NULL default to enabled)
 };
 
@@ -85,7 +85,7 @@ struct link_node
   int menu_id;                  // query: menu_id = [menu id]
   int item_id;                  // query: item_id = [item id]
   int tab_id;                   // query: tab_id  = [tab id]
-  char *query;                  // query: additional query items for this link
+  const char *query;            // query: additional query items for this link
   bool refresh;
   char *help_link;
 };
@@ -122,7 +122,7 @@ static InkHashTable *g_item_ht = NULL;
 static InkHashTable *g_link_ht = NULL;
 static mode_node g_modes[WHT_MAX_MODES];
 
-static char *g_empty_string = "";
+static const char *g_empty_string = "";
 static int g_mode_id = 0;
 static int g_menu_id = 0;
 static int g_item_id = 0;
@@ -757,7 +757,7 @@ WebHttpRenderHtmlTabs(textBuffer * outpu
 //-------------------------------------------------------------------------
 
 char *
-WebHttpGetLink_Xmalloc(char *file_link)
+WebHttpGetLink_Xmalloc(const char *file_link)
 {
   link_node *link;
   char *buf = (char *) xmalloc(WHT_MAX_BUF_LEN + 1);

Modified: incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebHttpTree.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebHttpTree.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebHttpTree.h (original)
+++ incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebHttpTree.h Tue Apr 27 19:12:22 2010
@@ -43,7 +43,7 @@ bool WebHttpTreeReturnRefresh(char *file
 char *WebHttpTreeReturnHelpLink(char *file_link);
 void WebHttpTreeRebuildJsTree();
 
-char *WebHttpGetLink_Xmalloc(char *file_link);
+char *WebHttpGetLink_Xmalloc(const char *file_link);
 char *WebHttpGetLinkQuery_Xmalloc(char *file_link);
 
 void start_element_handler(void *userData, const char *name, const char **atts);

Modified: incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebIntrMain.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebIntrMain.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebIntrMain.cc (original)
+++ incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebIntrMain.cc Tue Apr 27 19:12:22 2010
@@ -290,7 +290,7 @@ setUpLogging()
 //    returns 1 if something is missing
 //
 int
-checkWebContext(WebContext * wctx, char *desc)
+checkWebContext(WebContext * wctx, const char *desc)
 {
 
   struct stat fInfo;

Modified: incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebOverview.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebOverview.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebOverview.cc (original)
+++ incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebOverview.cc Tue Apr 27 19:12:22 2010
@@ -269,7 +269,7 @@ overviewRecord::checkAlarms()
 //  CALLEE is responsible for obtaining and releasing the lock
 //
 RecCounter
-overviewRecord::readCounter(char *name, bool * found)
+overviewRecord::readCounter(const char *name, bool * found)
 {
   RecCounter rec = 0;
   int rec_status = REC_ERR_OKAY;
@@ -294,7 +294,7 @@ overviewRecord::readCounter(char *name, 
 }
 
 RecInt
-overviewRecord::readInteger(char *name, bool * found)
+overviewRecord::readInteger(const char *name, bool * found)
 {
   RecInt rec = 0;
   int rec_status = REC_ERR_OKAY;
@@ -319,7 +319,7 @@ overviewRecord::readInteger(char *name, 
 }
 
 RecLLong
-overviewRecord::readLLong(char *name, bool * found)
+overviewRecord::readLLong(const char *name, bool * found)
 {
   RecLLong rec = 0;
   int rec_status = REC_ERR_OKAY;
@@ -344,7 +344,7 @@ overviewRecord::readLLong(char *name, bo
 }
 
 RecFloat
-overviewRecord::readFloat(char *name, bool * found)
+overviewRecord::readFloat(const char *name, bool * found)
 {
   RecFloat rec = 0.0;
   int rec_status = REC_ERR_OKAY;
@@ -369,7 +369,7 @@ overviewRecord::readFloat(char *name, bo
 }
 
 RecString
-overviewRecord::readString(char *name, bool * found)
+overviewRecord::readString(const char *name, bool * found)
 {
   RecString rec = NULL;
   int rec_status = REC_ERR_OKAY;
@@ -409,7 +409,7 @@ overviewRecord::readString(char *name, b
 //    an easy way to merge the functions
 //
 bool
-overviewRecord::varStrFromName(char *varNameConst, char *bufVal, int bufLen)
+overviewRecord::varStrFromName(const char *varNameConst, char *bufVal, int bufLen)
 {
   char *varName;
   RecDataT varDataType;
@@ -1514,7 +1514,7 @@ overviewPage::findNodeByName(const char 
 //    CALLEE deallocates the string with free()
 //
 MgmtString
-overviewPage::readString(const char *nodeName, char *name, bool * found)
+overviewPage::readString(const char *nodeName, const char *name, bool * found)
 {
   MgmtString r = NULL;
   //  bool nodeFound = false;
@@ -1542,7 +1542,7 @@ overviewPage::readString(const char *nod
 //   Looks up a node record for a specific by nodeName
 //
 MgmtInt
-overviewPage::readInteger(const char *nodeName, char *name, bool * found)
+overviewPage::readInteger(const char *nodeName, const char *name, bool * found)
 {
   MgmtInt r = -1;
   //  bool nodeFound = false;
@@ -1570,7 +1570,7 @@ overviewPage::readInteger(const char *no
 //   Looks up a node record for a specific by nodeName
 //
 RecFloat
-overviewPage::readFloat(const char *nodeName, char *name, bool * found)
+overviewPage::readFloat(const char *nodeName, const char *name, bool * found)
 {
   RecFloat r = -1.0;
   //  bool nodeFound = false;
@@ -1631,8 +1631,8 @@ overviewPage::agCacheHitRate()
   const ink_hrtime window = 10 * HRTIME_SECOND; // update every 10 seconds
   static StatTwoIntSamples cluster_hit_count = { "proxy.node.cache_total_hits", 0, 0, 0, 0 };
   static StatTwoIntSamples cluster_miss_count = { "proxy.node.cache_total_misses", 0, 0, 0, 0 };
-  static char *cluster_hit_count_name = "proxy.cluster.cache_total_hits_avg_10s";
-  static char *cluster_miss_count_name = "proxy.cluster.cache_total_misses_avg_10s";
+  static const char *cluster_hit_count_name = "proxy.cluster.cache_total_hits_avg_10s";
+  static const char *cluster_miss_count_name = "proxy.cluster.cache_total_misses_avg_10s";
 
   MgmtIntCounter totalHits = 0;
   MgmtIntCounter totalMisses = 0;
@@ -1742,8 +1742,8 @@ overviewPage::agHostdbHitRate()
   const ink_hrtime window = 10 * HRTIME_SECOND; // update every 10 seconds
   static StatTwoIntSamples cluster_hostdb_total_lookups = { "proxy.node.hostdb.total_lookups", 0, 0, 0, 0 };
   static StatTwoIntSamples cluster_hostdb_hits = { "proxy.node.hostdb.total_hits", 0, 0, 0, 0 };
-  static char *cluster_hostdb_total_lookups_name = "proxy.cluster.hostdb.total_lookups_avg_10s";
-  static char *cluster_hostdb_hits_name = "proxy.cluster.hostdb.total_hits_avg_10s";
+  static const char *cluster_hostdb_total_lookups_name = "proxy.cluster.hostdb.total_lookups_avg_10s";
+  static const char *cluster_hostdb_hits_name = "proxy.cluster.hostdb.total_hits_avg_10s";
 
   RecInt hostDBtotal = 0;
   RecInt hostDBhits = 0;
@@ -1854,8 +1854,8 @@ overviewPage::agBandwidthHitRate()
   const ink_hrtime window = 10 * HRTIME_SECOND; // update every 10 seconds
   static StatTwoIntSamples cluster_ua_total_bytes = { "proxy.node.user_agent_total_bytes", 0, 0, 0, 0 };
   static StatTwoIntSamples cluster_os_total_bytes = { "proxy.node.origin_server_total_bytes", 0, 0, 0, 0 };
-  static char *cluster_ua_total_bytes_name = "proxy.cluster.user_agent_total_bytes_avg_10s";
-  static char *cluster_os_total_bytes_name = "proxy.cluster.origin_server_total_bytes_avg_10s";
+  static const char *cluster_ua_total_bytes_name = "proxy.cluster.user_agent_total_bytes_avg_10s";
+  static const char *cluster_os_total_bytes_name = "proxy.cluster.origin_server_total_bytes_avg_10s";
 
   MgmtInt bytes;
   MgmtInt UA_total = 0;         // User Agent total
@@ -2011,7 +2011,7 @@ overviewPage::agBandwidthHitRate()
 //   CALLEE MUST HOLD this->accessLock
 //
 int
-overviewPage::clusterSumInt(char *nodeVar, RecInt * sum)
+overviewPage::clusterSumInt(const char *nodeVar, RecInt * sum)
 {
   int numUsed = 0;
   int numHosts_local = sortRecords.getNumEntries();
@@ -2062,7 +2062,7 @@ overviewPage::agConnections()
 //   CALLEE MUST HOLD this->accessLock
 //
 void
-overviewPage::clusterAgInt(char *clusterVar, char *nodeVar)
+overviewPage::clusterAgInt(const char *clusterVar, const char *nodeVar)
 {
   int numUsed = 0;
   MgmtInt sum = 0;
@@ -2074,7 +2074,7 @@ overviewPage::clusterAgInt(char *cluster
 }
 
 void
-overviewPage::clusterAgIntScale(char *clusterVar, char *nodeVar, double factor)
+overviewPage::clusterAgIntScale(const char *clusterVar, const char *nodeVar, double factor)
 {
   int numUsed = 0;
   RecInt sum = 0;
@@ -2125,7 +2125,7 @@ overviewPage::clusterSumCounter(char *no
 //   CALLEE MUST HOLD this->accessLock
 //
 int
-overviewPage::clusterSumFloat(char *nodeVar, RecFloat * sum)
+overviewPage::clusterSumFloat(const char *nodeVar, RecFloat * sum)
 {
   int numUsed = 0;
   int numHosts_local = sortRecords.getNumEntries();
@@ -2157,7 +2157,7 @@ overviewPage::clusterSumFloat(char *node
 //   CALLEE MUST HOLD this->accessLock
 //
 void
-overviewPage::clusterAgFloat(char *clusterVar, char *nodeVar)
+overviewPage::clusterAgFloat(const char *clusterVar, const char *nodeVar)
 {
   int numUsed = 0;
   MgmtFloat sum = 0;

Modified: incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebOverview.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebOverview.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebOverview.h (original)
+++ incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebOverview.h Tue Apr 27 19:12:22 2010
@@ -101,12 +101,12 @@ public:
   unsigned long inetAddr;       // IP address of the node
   DLL<AlarmListable> nodeAlarms;   // List of alarms for the node
   void checkAlarms();
-  bool varStrFromName(char *varName, char *bufVal, int bufLen);
-  RecCounter readCounter(char *name, bool * found);
-  RecInt readInteger(char *name, bool * found);
-  RecLLong readLLong(char *name, bool * found);
-  RecFloat readFloat(char *name, bool * found);
-  RecString readString(char *name, bool * found);
+  bool varStrFromName(const char *varName, char *bufVal, int bufLen);
+  RecCounter readCounter(const char *name, bool * found);
+  RecInt readInteger(const char *name, bool * found);
+  RecLLong readLLong(const char *name, bool * found);
+  RecFloat readFloat(const char *name, bool * found);
+  RecString readString(const char *name, bool * found);
   bool varIntFromName(const char *varName, RecInt * value);
   bool varFloatFromName(const char *varName, RecFloat * value);
   bool varCounterFromName(const char *varName, RecCounter * value);
@@ -138,9 +138,9 @@ public:
   char *resolvePeerHostname(const char *peerIP);
   char *resolvePeerHostname_ml(const char *peerIP);
   int getClusterHosts(ExpandingArray * hosts);
-  MgmtInt readInteger(const char *nodeName, char *name, bool * found = NULL);
-  MgmtFloat readFloat(const char *nodeName, char *name, bool * found = NULL);
-  MgmtString readString(const char *nodeName, char *name, bool * found = NULL);
+  MgmtInt readInteger(const char *nodeName, const char *name, bool * found = NULL);
+  MgmtFloat readFloat(const char *nodeName, const char *name, bool * found = NULL);
+  MgmtString readString(const char *nodeName, const char *name, bool * found = NULL);
   void doClusterAg();
   void addSelfRecord();
 
@@ -170,13 +170,13 @@ private:
 
   // Functions to do cluster aggregation
   //
-  void clusterAgInt(char *clustVar, char *nodeVar);
-  void clusterAgIntScale(char *clustVar, char *nodeVar, double factor);
+  void clusterAgInt(const char *clustVar, const char *nodeVar);
+  void clusterAgIntScale(const char *clustVar, const char *nodeVar, double factor);
 #define MB_SCALE (1/(1024*1024.0))
-  int clusterSumInt(char *nodeVar, MgmtInt * sum);
+  int clusterSumInt(const char *nodeVar, MgmtInt * sum);
   int clusterSumCounter(char *nodeVar, MgmtInt * sum);
-  void clusterAgFloat(char *clusterVar, char *nodeVar);
-  int clusterSumFloat(char *nodeVar, MgmtFloat * sum);
+  void clusterAgFloat(const char *clusterVar, const char *nodeVar);
+  int clusterSumFloat(const char *nodeVar, MgmtFloat * sum);
   void agHostdbHitRate();
   void agCacheHitRate();
   void agCachePercentFree();

Modified: incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebReconfig.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebReconfig.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebReconfig.cc (original)
+++ incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebReconfig.cc Tue Apr 27 19:12:22 2010
@@ -578,7 +578,7 @@ configSSLenable()
   return;
 
 SSL_FAILED:
-  char *errMsg = "Unable to initialize SSL.  Web administration inoperable";
+  const char *errMsg = "Unable to initialize SSL.  Web administration inoperable";
   mgmt_elog(stderr, "[configSSLenable] %s\n", errMsg);
   lmgmt->alarm_keeper->signalAlarm(MGMT_ALARM_WEB_ERROR, errMsg);
   adminContext.SSLenabled = -1;

Modified: incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebUtils.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebUtils.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebUtils.cc (original)
+++ incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebUtils.cc Tue Apr 27 19:12:22 2010
@@ -84,7 +84,7 @@ UU_decode(const char *inBuffer, int outB
   int inputBytesDecoded = 0;
 
   // Figure out much encoded string is really there
-  while (printableToSixBit[inBuffer[inBytes]] <= MAX_PRINT_VAL) {
+  while (printableToSixBit[(inku8)inBuffer[inBytes]] <= MAX_PRINT_VAL) {
     inBytes++;
   }
 

Modified: incubator/trafficserver/traffic/trunk/rc/update_records.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/rc/update_records.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/rc/update_records.cc (original)
+++ incubator/trafficserver/traffic/trunk/rc/update_records.cc Tue Apr 27 19:12:22 2010
@@ -57,17 +57,17 @@
 
 struct ConfigEntry
 {
-  char *type;
-  char *name;
-  char *value_type;
-  char *value;
+  const char *type;
+  const char *name;
+  const char *value_type;
+  const char *value;
   ConfigEntry *next;
 };
 
 struct RecordRenameMapElement
 {
-  char *old_name;
-  char *new_name;
+  const char *old_name;
+  const char *new_name;
 };
 
 //-------------------------------------------------------------------------
@@ -88,7 +88,7 @@ RecordRenameMapElement RecordRenameMap[]
 };
 
 // blacklist these records (upgrade only!)
-char *RecordBlackList[] = {
+const char *RecordBlackList[] = {
   "proxy.config.socks.socks_version",
   NULL                          // array terminator
 };
@@ -105,18 +105,18 @@ InkHashTable *modify_ht = 0;
 ConfigEntry *modify_list_head = 0;
 ConfigEntry *modify_list_tail = 0;
 
-char *null_str = "NULL";
-char *config_str = "CONFIG";
-char *local_str = "LOCAL";
-char *plugin_str = "PLUGIN";
-char *int_str = "INT";
-char *llong_str = "LLONG";
-char *string_str = "STRING";
-char *float_str = "FLOAT";
-char *counter_str = "COUNTER";
+const char *null_str = "NULL";
+const char *config_str = "CONFIG";
+const char *local_str = "LOCAL";
+const char *plugin_str = "PLUGIN";
+const char *int_str = "INT";
+const char *llong_str = "LLONG";
+const char *string_str = "STRING";
+const char *float_str = "FLOAT";
+const char *counter_str = "COUNTER";
 
 #define ADMIN_PASSWD_LEN 23
-char *admin_passwd_rec_name = "proxy.config.admin.admin_password";
+const char *admin_passwd_rec_name = "proxy.config.admin.admin_password";
 char admin_passwd[ADMIN_PASSWD_LEN + 1];
 
 bool upgrade = false;
@@ -342,7 +342,7 @@ generate_rename_ht_from_RecordRenameMap(
   RecordRenameMapElement *rrme = RecordRenameMap;
 
   while (rrme->old_name != NULL) {
-    ink_hash_table_insert(rename_ht, rrme->old_name, rrme->new_name);
+    ink_hash_table_insert(rename_ht, rrme->old_name, (void*)rrme->new_name);
     rrme++;
   }
   return 0;
@@ -357,7 +357,7 @@ int
 generate_blacklist_ht_from_RecordBlackList()
 {
 
-  char **p = RecordBlackList;
+  const char **p = RecordBlackList;
 
   while (*p != NULL) {
     ink_hash_table_insert(blacklist_ht, *p, NULL);
@@ -503,7 +503,8 @@ generate_new_config(char *fname)
 
   FILE *fp;
   char *p, *q, *t, *p_copy;
-  char *b_type, *b_name, *b_value_type, *b_value;
+  char *b_type, *b_name, *b_value_type;
+  const char *b_value;
   SimpleTokenizer st(' ', SimpleTokenizer::OVERWRITE_INPUT_STRING);
   ConfigEntry *ce;