trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bc...@apache.org
Subject svn commit: r938607 [3/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...
Date Tue, 27 Apr 2010 19:12:27 GMT
Modified: incubator/trafficserver/traffic/trunk/proxy/http2/HttpTransact.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/http2/HttpTransact.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/http2/HttpTransact.h (original)
+++ incubator/trafficserver/traffic/trunk/proxy/http2/HttpTransact.h Tue Apr 27 19:12:22 2010
@@ -918,7 +918,7 @@ public:
   {
     char *path;                 // out
     char *filename;             // out
-    char *username;             // out
+    const char *username;       // out
     char *password;             // out
     char transfer_mode;         // out
     MimeTableEntry *mime_type;  // out
@@ -1230,7 +1230,7 @@ public:
   static void HandlePushCacheWrite(State * s);
   static void HandlePushTunnelSuccess(State * s);
   static void HandlePushTunnelFailure(State * s);
-  static void HandlePushError(State * s, char *reason);
+  static void HandlePushError(State *s, const char *reason);
   static void HandleBadPushRespHdr(State * s);
 
   // Utility Methods
@@ -1325,9 +1325,8 @@ public:
                                                HTTPHdr * client_request, HTTPHdr * obj_response);
   static void handle_parent_died(State * s);
   static void handle_server_died(State * s);
-  static void build_error_response(State * s,
-                                   HTTPStatus status_code,
-                                   char *reason_phrase_or_null, char *error_body_type, char *format, ...);
+  static void build_error_response(State *s, HTTPStatus status_code, const char *reason_phrase_or_null,
+                                   const char *error_body_type, const char *format, ...);
   static void build_redirect_response(State * s);
   static const char *get_error_string(int erno);
 
@@ -1583,7 +1582,7 @@ HttpTransact::State::destroy()
   return;
 }
 
-inline char *
+inline const char *
 conn_state_enum_to_str(HttpTransact::ServerState_t the_state)
 {
   switch (the_state) {

Modified: incubator/trafficserver/traffic/trunk/proxy/http2/HttpTransactHeaders.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/http2/HttpTransactHeaders.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/http2/HttpTransactHeaders.cc (original)
+++ incubator/trafficserver/traffic/trunk/proxy/http2/HttpTransactHeaders.cc Tue Apr 27 19:12:22 2010
@@ -570,8 +570,7 @@ HttpTransactHeaders::downgrade_request(b
   -------------------------------------------------------------------------*/
 
 bool
-HttpTransactHeaders::generate_basic_authorization_from_request(Arena * arena,
-                                                               HTTPHdr * h, char **username, char **password)
+HttpTransactHeaders::generate_basic_authorization_from_request(Arena *arena, HTTPHdr *h, char **username, char **password)
 {
   const char *auth_value;
   const char *auth_end;
@@ -1091,8 +1090,8 @@ HttpTransactHeaders::handle_conditional_
   -------------------------------------------------------------------------*/
 
 void
-HttpTransactHeaders::insert_warning_header(HttpConfigParams * http_config_param,
-                                           HTTPHdr * header, HTTPWarningCode code, char *warn_text, int warn_text_len)
+HttpTransactHeaders::insert_warning_header(HttpConfigParams *http_config_param, HTTPHdr *header, HTTPWarningCode code,
+                                           const char *warn_text, int warn_text_len)
 {
   char *p;
   char *warning_text = NULL;
@@ -1220,7 +1219,7 @@ HttpTransactHeaders::insert_via_header_i
   }
 
   ink_assert(scheme >= 0);
-  char *prot = "?";
+  const char *prot = "?";
   if (scheme == URL_WKSIDX_HTTP)
     prot = "HTTP";
   else if (scheme == URL_WKSIDX_HTTPS)
@@ -1315,7 +1314,7 @@ HttpTransactHeaders::insert_via_header_i
     return;
   }
 
-  char *prot = "?";
+  const char *prot = "?";
   if (scheme == URL_WKSIDX_HTTP)
     prot = "HTTP";
   else if (scheme == URL_WKSIDX_HTTPS)

Modified: incubator/trafficserver/traffic/trunk/proxy/http2/HttpTransactHeaders.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/http2/HttpTransactHeaders.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/http2/HttpTransactHeaders.h (original)
+++ incubator/trafficserver/traffic/trunk/proxy/http2/HttpTransactHeaders.h Tue Apr 27 19:12:22 2010
@@ -76,7 +76,7 @@ public:
   static bool does_server_allow_response_to_be_stored(HTTPHdr * resp);
   static bool downgrade_request(bool * origin_server_keep_alive, HTTPHdr * outgoing_request);
 
-  static bool generate_basic_authorization_from_request(Arena * arena, HTTPHdr * h, char **username, char **password);
+  static bool generate_basic_authorization_from_request(Arena *arena, HTTPHdr *h, char **username, char **password);
   static bool get_wuts_code(HTTPHdr * hdr, WUTSCode * w);
   static void set_wuts_codes(HTTPHdr * hdr, WUTSCode * code);
   static void set_wuts_codes(HTTPHdr * hdr, SquidHitMissCode hit_miss_code,
@@ -88,9 +88,9 @@ public:
   //INKqa09773
   static void convert_wuts_code_to_normal_reason(HTTPHdr * header);
   static void handle_conditional_headers(HttpTransact::CacheLookupInfo * cache_info, HTTPHdr * header);
-  static void insert_warning_header(HttpConfigParams * http_config_param,
-                                    HTTPHdr * header, HTTPWarningCode code,
-                                    char *warn_text = NULL, int warn_text_len = 0);
+  static void insert_warning_header(HttpConfigParams *http_config_param,
+                                    HTTPHdr *header, HTTPWarningCode code,
+                                    const char *warn_text = NULL, int warn_text_len = 0);
   static void insert_time_and_age_headers_in_response(ink_time_t request_sent_time,
                                                       ink_time_t response_received_time,
                                                       ink_time_t now, HTTPHdr * base, HTTPHdr * outgoing);
@@ -119,7 +119,7 @@ public:
   static void add_server_header_to_response(HttpConfigParams * http_config_param, HTTPHdr * header);
   static void remove_privacy_headers_from_request(HttpConfigParams * http_config_param, HTTPHdr * header);
 
-  static int nstrcpy(char *d, char *as);
+  static int nstrcpy(char *d, const char *as);
 };
 
 /*****************************************************************************
@@ -152,9 +152,9 @@ HttpTransactHeaders::is_this_http_method
 }
 
 inline int
-HttpTransactHeaders::nstrcpy(char *d, char *as)
+HttpTransactHeaders::nstrcpy(char *d, const char *as)
 {
-  char *s = as;
+  const char *s = as;
   while (*s)
     *d++ = *s++;
   return s - as;

Modified: incubator/trafficserver/traffic/trunk/proxy/http2/remap/UrlRewrite.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/http2/remap/UrlRewrite.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/http2/remap/UrlRewrite.cc (original)
+++ incubator/trafficserver/traffic/trunk/proxy/http2/remap/UrlRewrite.cc Tue Apr 27 19:12:22 2010
@@ -204,7 +204,8 @@ validate_filter_args(acl_filter_rule ** 
 {
   acl_filter_rule *rule;
   unsigned long ul;
-  char *argptr, tmpbuf[1024], *c;
+  char *argptr, tmpbuf[1024];
+  const char *c;
   SRC_IP_INFO *ipi;
   int i, j, m;
   bool new_rule_flg = false;
@@ -497,7 +498,7 @@ process_filter_opt(url_mapping * mp, BUI
 }
 
 
-UrlRewrite::UrlRewrite(char *file_var_in)
+UrlRewrite::UrlRewrite(const char *file_var_in)
 :nohost_rules(0), reverse_proxy(0), pristine_host_hdr(0), backdoor_enabled(0),
 mgmt_autoconf_port(0), default_to_pac(0), default_to_pac_port(0), file_var(NULL), ts_name(NULL),
 http_default_redirect_url(NULL), num_rules_forward(0), num_rules_reverse(0), num_rules_redirect_permanent(0),
@@ -2176,7 +2177,7 @@ UrlRewrite::BuildTable()
 
 */
 bool
-UrlRewrite::TableInsert(InkHashTable * h_table, url_mapping * mapping, char *src_host)
+UrlRewrite::TableInsert(InkHashTable * h_table, url_mapping * mapping, const char *src_host)
 {
   char src_host_tmp_buf[1];
   UrlMappingPathIndex *ht_contents;

Modified: incubator/trafficserver/traffic/trunk/proxy/http2/remap/UrlRewrite.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/http2/remap/UrlRewrite.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/http2/remap/UrlRewrite.h (original)
+++ incubator/trafficserver/traffic/trunk/proxy/http2/remap/UrlRewrite.h Tue Apr 27 19:12:22 2010
@@ -79,7 +79,7 @@ enum mapping_type
 class UrlRewrite
 {
 public:
-  UrlRewrite(char *file_var_in);
+  UrlRewrite(const char *file_var_in);
    ~UrlRewrite();
   int BuildTable();
   bool Remap(HttpTransact::State * s, HTTPHdr * request_header, char **redirect_url, char **orig_url,
@@ -140,7 +140,7 @@ public:
     _destroyTable(store.hash_lookup);
     _destroyList(store.regex_list);
   }
-  bool TableInsert(InkHashTable * h_table, url_mapping * mapping, char *src_host);
+  bool TableInsert(InkHashTable *h_table, url_mapping *mapping, const char *src_host);
 
   MappingsStore forward_mappings;
   MappingsStore reverse_mappings;

Modified: incubator/trafficserver/traffic/trunk/proxy/logcat.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/logcat.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/logcat.cc (original)
+++ incubator/trafficserver/traffic/trunk/proxy/logcat.cc Tue Apr 27 19:12:22 2010
@@ -77,7 +77,7 @@ ArgumentDescription argument_description
 };
 int n_argument_descriptions = SIZE(argument_descriptions);
 
-static char *USAGE_LINE = "Usage: " PROGRAM_NAME " [-o output-file | -a] [-CEhS"
+static const char *USAGE_LINE = "Usage: " PROGRAM_NAME " [-o output-file | -a] [-CEhS"
 #ifdef DEBUG
   "T"
 #endif

Modified: incubator/trafficserver/traffic/trunk/proxy/logging/Log.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/logging/Log.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/logging/Log.cc (original)
+++ incubator/trafficserver/traffic/trunk/proxy/logging/Log.cc Tue Apr 27 19:12:22 2010
@@ -1282,7 +1282,7 @@ done:
   -------------------------------------------------------------------------*/
 
 int
-Log::error(char *format, ...)
+Log::error(const char *format, ...)
 {
   int ret_val = Log::SKIP;
 

Modified: incubator/trafficserver/traffic/trunk/proxy/logging/Log.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/logging/Log.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/logging/Log.h (original)
+++ incubator/trafficserver/traffic/trunk/proxy/logging/Log.h Tue Apr 27 19:12:22 2010
@@ -362,7 +362,7 @@ public:
     return (logging_mode == FULL_LOGGING || logging_mode == LOG_ERRORS_ONLY);
   }
   inkcoreapi static int access(LogAccess * lad);
-  inkcoreapi static int error(char *format, ...);
+  inkcoreapi static int error(const char *format, ...);
 #else
   static int error(char *format, ...)
   {

Modified: incubator/trafficserver/traffic/trunk/proxy/logging/LogAccess.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/logging/LogAccess.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/logging/LogAccess.cc (original)
+++ incubator/trafficserver/traffic/trunk/proxy/logging/LogAccess.cc Tue Apr 27 19:12:22 2010
@@ -828,7 +828,7 @@ LogAccess::marshal_record(char *record, 
   ink_debug_assert(::strlen(record_not_found_msg) + 1 == record_not_found_chars);
 
   char ascii_buf[max_chars];
-  register char *out_buf;
+  register const char *out_buf;
   register unsigned int num_chars;
 
 #define LOG_INTEGER RECD_INT
@@ -1002,7 +1002,7 @@ LogAccess::marshal_int_no_byte_order_con
   -------------------------------------------------------------------------*/
 
 void
-LogAccess::marshal_str(char *dest, char *source, int padded_len)
+LogAccess::marshal_str(char *dest, const char *source, int padded_len)
 {
   if (source == NULL || source[0] == 0 || padded_len == 0) {
     source = DEFAULT_STR;
@@ -1032,7 +1032,7 @@ LogAccess::marshal_str(char *dest, char 
   -------------------------------------------------------------------------*/
 
 void
-LogAccess::marshal_mem(char *dest, char *source, int actual_len, int padded_len)
+LogAccess::marshal_mem(char *dest, const char *source, int actual_len, int padded_len)
 {
   if (source == NULL || source[0] == 0 || actual_len == 0) {
     source = DEFAULT_STR;
@@ -1057,7 +1057,7 @@ LogAccess::marshal_mem(char *dest, char 
 }
 
 inline int
-LogAccess::unmarshal_with_map(LOG_INT code, char *dest, int len, Ptr<LogFieldAliasMap> map, char *msg)
+LogAccess::unmarshal_with_map(LOG_INT code, char *dest, int len, Ptr<LogFieldAliasMap> map, const char *msg)
 {
   int codeStrLen;
 
@@ -1281,7 +1281,7 @@ LogAccess::unmarshal_http_version(char *
   ink_assert(*buf != NULL);
   ink_assert(dest != NULL);
 
-  static char *http = "HTTP/";
+  static const char *http = "HTTP/";
   static int http_len = (int)::strlen(http);
 
   char val_buf[128];

Modified: incubator/trafficserver/traffic/trunk/proxy/logging/LogAccess.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/logging/LogAccess.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/logging/LogAccess.h (original)
+++ incubator/trafficserver/traffic/trunk/proxy/logging/LogAccess.h Tue Apr 27 19:12:22 2010
@@ -314,7 +314,7 @@ public:
   static int unmarshal_entry_type(char **buf, char *dest, int len, Ptr<LogFieldAliasMap> map);
   static int unmarshal_cache_write_code(char **buf, char *dest, int len, Ptr<LogFieldAliasMap> map);
 
-  static int unmarshal_with_map(LOG_INT code, char *dest, int len, Ptr<LogFieldAliasMap> map, char *msg = 0);
+  static int unmarshal_with_map(LOG_INT code, char *dest, int len, Ptr<LogFieldAliasMap> map, const char *msg = 0);
 
   static int unmarshal_record(char **buf, char *dest, int len);
 
@@ -328,8 +328,8 @@ public:
 public:
   inkcoreapi void static marshal_int(char *dest, LOG_INT source);
   inkcoreapi void static marshal_int_no_byte_order_conversion(char *dest, LOG_INT source);
-  inkcoreapi void static marshal_str(char *dest, char *source, int padded_len);
-  inkcoreapi void static marshal_mem(char *dest, char *source, int actual_len, int padded_len);
+  inkcoreapi void static marshal_str(char *dest, const char *source, int padded_len);
+  inkcoreapi void static marshal_mem(char *dest, const char *source, int actual_len, int padded_len);
 
   bool initialized;
 

Modified: incubator/trafficserver/traffic/trunk/proxy/logging/LogConfig.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/logging/LogConfig.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/logging/LogConfig.cc (original)
+++ incubator/trafficserver/traffic/trunk/proxy/logging/LogConfig.cc Tue Apr 27 19:12:22 2010
@@ -788,7 +788,7 @@ LogConfig::init(LogConfig * prev_config)
         NEW(new TextLogObject("error.log", logfile_dir, true, NULL,
                               rolling_enabled, rolling_interval_sec, rolling_offset_hr, rolling_size_mb));
       if (new_elog->do_filesystem_checks() < 0) {
-        char *msg = "The log file %s did not pass filesystem checks. " "No output will be produced for this log";
+        const char *msg = "The log file %s did not pass filesystem checks. " "No output will be produced for this log";
         Error(msg, new_elog->get_full_filename());
         LogUtils::manager_alarm(LogUtils::LOG_ALARM_ERROR, msg, new_elog->get_full_filename());
         delete new_elog;
@@ -961,7 +961,7 @@ LogConfig::setup_pre_defined_info(PreDef
 /* end-user's search requirements.                               */
 /*                                                               */
 void
-LogConfig::add_filters_to_search_log_object(char *format_name)
+LogConfig::add_filters_to_search_log_object(const char *format_name)
 {
   LogObject *obj;
 
@@ -996,9 +996,8 @@ LogConfig::add_filters_to_search_log_obj
 #endif
 
 void
-LogConfig::create_pre_defined_objects_with_filter(const PreDefinedFormatInfoList & pre_def_info_list,
-                                                  size_t num_filters,
-                                                  LogFilter ** filter, char *filt_name, bool force_extension)
+LogConfig::create_pre_defined_objects_with_filter(const PreDefinedFormatInfoList & pre_def_info_list, size_t num_filters,
+                                                  LogFilter ** filter, const char *filt_name, bool force_extension)
 {
   PreDefinedFormatInfo *pdi;
   for (pdi = pre_def_info_list.head; pdi != NULL; pdi = (pdi->link).next) {
@@ -1070,8 +1069,8 @@ LogConfig::split_by_protocol(const PreDe
   unsigned value[] = { LOG_ENTRY_NNTP, LOG_ENTRY_ICP,
     LOG_ENTRY_MIXT, LOG_ENTRY_HTTP
   };
-  char *name[] = { "nntp", "icp", "mixt", "http" };
-  char *filter_name[] = { "__nntp__", "__icp__", "__mixt__", "__http__" };
+  const char *name[] = { "nntp", "icp", "mixt", "http" };
+  const char *filter_name[] = { "__nntp__", "__icp__", "__mixt__", "__http__" };
   unsigned filter_val[http];    // protocols to reject
   size_t n = 0;
 
@@ -1081,8 +1080,7 @@ LogConfig::split_by_protocol(const PreDe
 
   if (separate_nntp_logs) {
     if (separate_nntp_logs == 1) {
-      filter[0] = NEW(new LogFilterInt(filter_name[nntp],
-                                       etype_field, LogFilter::ACCEPT, LogFilter::MATCH, value[nntp]));
+      filter[0] = NEW(new LogFilterInt(filter_name[nntp], etype_field, LogFilter::ACCEPT, LogFilter::MATCH, value[nntp]));
       create_pre_defined_objects_with_filter(pre_def_info_list, 1, filter, name[nntp]);
       delete filter[0];
     }
@@ -1706,7 +1704,7 @@ LogConfig::update_space_used()
   // check if logging directory has been specified
   //
   if (!logfile_dir) {
-    char *msg = "Logging directory not specified";
+    const char *msg = "Logging directory not specified";
     Error(msg);
     LogUtils::manager_alarm(LogUtils::LOG_ALARM_ERROR, msg);
     m_log_directory_inaccessible = true;
@@ -1720,7 +1718,7 @@ LogConfig::update_space_used()
   } while ((err < 0) && (errno == EINTR));
 
   if (err < 0) {
-    char *msg = "Error accessing logging directory %s: %s.";
+    const char *msg = "Error accessing logging directory %s: %s.";
     Error(msg, logfile_dir, strerror(errno));
     LogUtils::manager_alarm(LogUtils::LOG_ALARM_ERROR, msg, logfile_dir, strerror(errno));
     m_log_directory_inaccessible = true;
@@ -1729,7 +1727,7 @@ LogConfig::update_space_used()
 
   ld =::opendir(logfile_dir);
   if (ld == NULL) {
-    char *msg = "Error opening logging directory %s to perform a space " "check: %s.";
+    const char *msg = "Error opening logging directory %s to perform a space " "check: %s.";
     Error(msg, logfile_dir, strerror(errno));
     LogUtils::manager_alarm(LogUtils::LOG_ALARM_ERROR, msg, logfile_dir, strerror(errno));
     m_log_directory_inaccessible = true;

Modified: incubator/trafficserver/traffic/trunk/proxy/logging/LogConfig.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/logging/LogConfig.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/logging/LogConfig.h (original)
+++ incubator/trafficserver/traffic/trunk/proxy/logging/LogConfig.h Tue Apr 27 19:12:22 2010
@@ -301,12 +301,10 @@ private:
   void setup_pre_defined_info(PreDefinedFormatInfoList * pre_def_info_list);
   LogFilter *split_by_protocol(const PreDefinedFormatInfoList & pre_def_info_list);
   size_t split_by_hostname(const PreDefinedFormatInfoList & pre_def_info_list, LogFilter * reject_protocol);
-  void create_pre_defined_objects_with_filter(const PreDefinedFormatInfoList
-                                              & pre_def_info_list,
-                                              size_t num_filt,
-                                              LogFilter ** filter, char *filt_name = 0, bool force_extension = false);
+  void create_pre_defined_objects_with_filter(const PreDefinedFormatInfoList &pre_def_info_list, size_t num_filt,
+                                              LogFilter ** filter, const char *filt_name = 0, bool force_extension = false);
 
-  void add_filters_to_search_log_object(char *format_name);
+  void add_filters_to_search_log_object(const char *format_name);
 
 private:
   // if true, use max_space_mb_for_orphan_logs to determine the amount

Modified: incubator/trafficserver/traffic/trunk/proxy/logging/LogField.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/logging/LogField.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/logging/LogField.cc (original)
+++ incubator/trafficserver/traffic/trunk/proxy/logging/LogField.cc Tue Apr 27 19:12:22 2010
@@ -39,7 +39,7 @@
 #include "LogAccess.h"
 #include "Log.h"
 
-char *container_names[] = {
+const char *container_names[] = {
   "not-a-container",
   "cqh",
   "psh",
@@ -55,7 +55,7 @@ char *container_names[] = {
   ""
 };
 
-char *aggregate_names[] = {
+const char *aggregate_names[] = {
   "not-an-agg-op",
   "COUNT",
   "SUM",
@@ -71,31 +71,11 @@ char *aggregate_names[] = {
 
 // Generic field ctor
 
-LogField::LogField(char *name, char *symbol, Type type, MarshalFunc marshal, UnmarshalFunc unmarshal)
+LogField::LogField(const char *name, const char *symbol, Type type, MarshalFunc marshal, UnmarshalFunc unmarshal)
   :
-m_name(xstrdup(name))
-  ,
-m_symbol(xstrdup(symbol))
-  ,
-m_type(type)
-  ,
-m_container(NO_CONTAINER)
-  ,
-m_marshal_func(marshal)
-  ,
-m_unmarshal_func(unmarshal)
-  ,
-m_unmarshal_func_map(NULL)
-  ,
-m_agg_op(NO_AGGREGATE)
-  ,
-m_agg_cnt(0)
-  ,
-m_agg_val(0)
-  ,
-m_time_field(false)
-  ,
-m_alias_map(0)
+  m_name(xstrdup(name)), m_symbol(xstrdup(symbol)), m_type(type), m_container(NO_CONTAINER), m_marshal_func(marshal),
+  m_unmarshal_func(unmarshal), m_unmarshal_func_map(NULL), m_agg_op(NO_AGGREGATE), m_agg_cnt(0), m_agg_val(0),
+  m_time_field(false), m_alias_map(0)
 {
   ink_assert(m_name != NULL);
   ink_assert(m_symbol != NULL);
@@ -108,32 +88,12 @@ m_alias_map(0)
                   || strcmp(m_symbol, "cqtn") == 0 || strcmp(m_symbol, "cqtd") == 0 || strcmp(m_symbol, "cqtt") == 0);
 }
 
-LogField::LogField(char *name, char *symbol, Type type,
+LogField::LogField(const char *name, const char *symbol, Type type,
                    MarshalFunc marshal, UnmarshalFuncWithMap unmarshal, Ptr<LogFieldAliasMap> map)
   :
-m_name(xstrdup(name))
-  ,
-m_symbol(xstrdup(symbol))
-  ,
-m_type(type)
-  ,
-m_container(NO_CONTAINER)
-  ,
-m_marshal_func(marshal)
-  ,
-m_unmarshal_func(NULL)
-  ,
-m_unmarshal_func_map(unmarshal)
-  ,
-m_agg_op(NO_AGGREGATE)
-  ,
-m_agg_cnt(0)
-  ,
-m_agg_val(0)
-  ,
-m_time_field(false)
-  ,
-m_alias_map(map)
+  m_name(xstrdup(name)), m_symbol(xstrdup(symbol)), m_type(type), m_container(NO_CONTAINER), m_marshal_func(marshal),
+  m_unmarshal_func(NULL), m_unmarshal_func_map(unmarshal), m_agg_op(NO_AGGREGATE), m_agg_cnt(0), m_agg_val(0),
+  m_time_field(false), m_alias_map(map)
 {
   ink_assert(m_name != NULL);
   ink_assert(m_symbol != NULL);
@@ -149,7 +109,7 @@ m_alias_map(map)
 
 // Container field ctor
 
-LogField::LogField(char *field, Container container)
+LogField::LogField(const char *field, Container container)
   :
 m_name(xstrdup(field))
   ,
@@ -401,7 +361,7 @@ LogField::unmarshal(char **buf, char *de
 void
 LogField::display(FILE * fd)
 {
-  static char *names[LogField::N_TYPES] = {
+  static const char *names[LogField::N_TYPES] = {
     "sINT",
     "dINT",
     "STR"

Modified: incubator/trafficserver/traffic/trunk/proxy/logging/LogField.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/logging/LogField.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/logging/LogField.h (original)
+++ incubator/trafficserver/traffic/trunk/proxy/logging/LogField.h Tue Apr 27 19:12:22 2010
@@ -86,12 +86,12 @@ public:
     N_AGGREGATES
   };
 
-    LogField(char *name, char *symbol, Type type, MarshalFunc marshal, UnmarshalFunc unmarshal);
+    LogField(const char *name, const char *symbol, Type type, MarshalFunc marshal, UnmarshalFunc unmarshal);
 
-    LogField(char *name, char *symbol, Type type,
+    LogField(const char *name, const char *symbol, Type type,
              MarshalFunc marshal, UnmarshalFuncWithMap unmarshal, Ptr<LogFieldAliasMap> map);
 
-    LogField(char *field, Container container);
+    LogField(const char *field, Container container);
     LogField(const LogField & rhs);
    ~LogField();
 
@@ -158,8 +158,8 @@ private:
   LogField & operator=(const LogField & rhs);
 };
 
-extern char *container_names[];
-extern char *aggregate_names[];
+extern const char *container_names[];
+extern const char *aggregate_names[];
 
 /*-------------------------------------------------------------------------
   LogFieldList

Modified: incubator/trafficserver/traffic/trunk/proxy/logging/LogFile.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/logging/LogFile.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/logging/LogFile.cc (original)
+++ incubator/trafficserver/traffic/trunk/proxy/logging/LogFile.cc Tue Apr 27 19:12:22 2010
@@ -662,7 +662,7 @@ LogFile::write(LogBuffer * lb, size_t * 
   -------------------------------------------------------------------------*/
 
 int
-LogFile::write_ascii_logbuffer(LogBufferHeader * buffer_header, int fd, char *path, char *alt_format)
+LogFile::write_ascii_logbuffer(LogBufferHeader * buffer_header, int fd, const char *path, char *alt_format)
 {
   ink_assert(buffer_header != NULL);
   ink_assert(fd >= 0);
@@ -858,7 +858,7 @@ LogFile::write_ascii_logbuffer3(LogBuffe
   -------------------------------------------------------------------------*/
 
 int
-LogFile::writeln(char *data, int len, int fd, char *path)
+LogFile::writeln(char *data, int len, int fd, const char *path)
 {
   int total_bytes = 0;
 

Modified: incubator/trafficserver/traffic/trunk/proxy/logging/LogFile.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/logging/LogFile.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/logging/LogFile.h (original)
+++ incubator/trafficserver/traffic/trunk/proxy/logging/LogFile.h Tue Apr 27 19:12:22 2010
@@ -173,7 +173,7 @@ public:
   {
     return (m_file_format == BINARY_LOG ? "binary" : (m_file_format == ASCII_PIPE ? "ascii_pipe" : "ascii"));
   };
-  static int write_ascii_logbuffer(LogBufferHeader * buffer_header, int fd, char *path, char *alt_format = NULL);
+  static int write_ascii_logbuffer(LogBufferHeader * buffer_header, int fd, const char *path, char *alt_format = NULL);
   int write_ascii_logbuffer3(LogBufferHeader * buffer_header, char *alt_format = NULL);
   static bool rolled_logfile(char *file);
   static bool exists(const char *pathname);
@@ -202,7 +202,7 @@ private:
   void close_file();
 
   void check_fd();
-  static int writeln(char *data, int len, int fd, char *path);
+  static int writeln(char *data, int len, int fd, const char *path);
   void read_metadata();
 
 private:

Modified: incubator/trafficserver/traffic/trunk/proxy/logging/LogFilter.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/logging/LogFilter.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/logging/LogFilter.cc (original)
+++ incubator/trafficserver/traffic/trunk/proxy/logging/LogFilter.cc Tue Apr 27 19:12:22 2010
@@ -43,13 +43,11 @@
 //#include "ink_ctype.h"
 #include "SimpleTokenizer.h"
 
-char *
-  LogFilter::OPERATOR_NAME[] = { "MATCH", "CASE_INSENSITIVE_MATCH",
+const char *LogFilter::OPERATOR_NAME[] = { "MATCH", "CASE_INSENSITIVE_MATCH",
   "CONTAIN", "CASE_INSENSITIVE_CONTAIN"
 };
 
-char *
-LogFilter::ACTION_NAME[] = { "REJECT", "ACCEPT" };
+const char *LogFilter::ACTION_NAME[] = { "REJECT", "ACCEPT" };
 
 /*-------------------------------------------------------------------------
   LogFilter::LogFilter
@@ -59,7 +57,7 @@ LogFilter::ACTION_NAME[] = { "REJECT", "
   between the classes and I think should be removed.     ltavera
   -------------------------------------------------------------------------*/
 
-LogFilter::LogFilter(char *name, LogField * field, LogFilter::Action action, LogFilter::Operator oper)
+LogFilter::LogFilter(const char *name, LogField * field, LogFilter::Action action, LogFilter::Operator oper)
   :
 m_name(xstrdup(name))
   ,
@@ -275,7 +273,7 @@ LogFilterString::_setValues(size_t n, ch
 }
 
 
-LogFilterString::LogFilterString(char *name, LogField * field,
+LogFilterString::LogFilterString(const char *name, LogField * field,
                                  LogFilter::Action action, LogFilter::Operator oper, char *values)
   :
 LogFilter(name, field, action, oper)
@@ -301,7 +299,7 @@ LogFilter(name, field, action, oper)
   delete[]val_array;
 }
 
-LogFilterString::LogFilterString(char *name, LogField * field,
+LogFilterString::LogFilterString(const char *name, LogField * field,
                                  LogFilter::Action action, LogFilter::Operator oper, size_t num_values, char **value)
   :
 LogFilter(name, field, action, oper)
@@ -530,7 +528,7 @@ LogFilterInt::_convertStringToInt(char *
   return 0;                     // all OK
 }
 
-LogFilterInt::LogFilterInt(char *name, LogField * field,
+LogFilterInt::LogFilterInt(const char *name, LogField * field,
                            LogFilter::Action action, LogFilter::Operator oper, unsigned value)
 :LogFilter(name, field, action, oper)
 {
@@ -539,7 +537,7 @@ LogFilterInt::LogFilterInt(char *name, L
   _setValues(1, v);
 }
 
-LogFilterInt::LogFilterInt(char *name, LogField * field,
+LogFilterInt::LogFilterInt(const char *name, LogField * field,
                            LogFilter::Action action, LogFilter::Operator oper, size_t num_values, unsigned *value)
   :
 LogFilter(name, field, action, oper)
@@ -547,7 +545,7 @@ LogFilter(name, field, action, oper)
   _setValues(num_values, value);
 }
 
-LogFilterInt::LogFilterInt(char *name, LogField * field,
+LogFilterInt::LogFilterInt(const char *name, LogField * field,
                            LogFilter::Action action, LogFilter::Operator oper, char *values)
   :
 LogFilter(name, field, action, oper)

Modified: incubator/trafficserver/traffic/trunk/proxy/logging/LogFilter.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/logging/LogFilter.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/logging/LogFilter.h (original)
+++ incubator/trafficserver/traffic/trunk/proxy/logging/LogFilter.h Tue Apr 27 19:12:22 2010
@@ -56,7 +56,7 @@ public:
     ACCEPT,
     N_ACTIONS
   };
-  static char *ACTION_NAME[];
+  static const char *ACTION_NAME[];
 
   // all operators "positive" (i.e., there is no NOMATCH operator anymore)
   // because one can specify through the "action" field if the record should
@@ -70,10 +70,10 @@ public:
     CASE_INSENSITIVE_CONTAIN,
     N_OPERATORS
   };
-  static char *OPERATOR_NAME[];
+  static const char *OPERATOR_NAME[];
 
-    LogFilter(char *name, LogField * field, Action action, Operator oper);
-    virtual ~ LogFilter();
+  LogFilter(const char *name, LogField * field, Action action, Operator oper);
+  virtual ~ LogFilter();
 
   char *name()
   {
@@ -128,10 +128,10 @@ private:
 class LogFilterString:public LogFilter
 {
 public:
-  LogFilterString(char *name, LogField * field, Action a, Operator o, char *value);
-    LogFilterString(char *name, LogField * field, Action a, Operator o, size_t num_values, char **value);
-    LogFilterString(const LogFilterString & rhs);
-   ~LogFilterString();
+  LogFilterString(const char *name, LogField * field, Action a, Operator o, char *value);
+  LogFilterString(const char *name, LogField * field, Action a, Operator o, size_t num_values, char **value);
+  LogFilterString(const LogFilterString & rhs);
+  ~LogFilterString();
   bool operator==(LogFilterString & rhs);
 
   bool toss_this_entry(LogAccess * lad);
@@ -150,9 +150,9 @@ private:
 
   // note: OperatorFunction's must return 0 (zero) if condition is satisfied
   // (as strcmp does)
-  typedef int (*OperatorFunction) (char *, char *);
+  typedef int (*OperatorFunction) (const char *, const char *);
 
-  static int _isSubstring(char *s0, char *s1)
+  static int _isSubstring(const char *s0, const char *s1)
   {
     // return 0 if s1 is substring of s0 and 1 otherwise
     // this reverse behavior is to conform to the behavior of strcmp
@@ -167,7 +167,7 @@ private:
   };
 
   inline bool _checkCondition(OperatorFunction f,
-                              char *field_value, size_t field_value_length, char **val, LengthCondition lc);
+                              const char *field_value, size_t field_value_length, char **val, LengthCondition lc);
 
   // -- member functions that are not allowed --
   LogFilterString();
@@ -183,9 +183,9 @@ private:
 class LogFilterInt:public LogFilter
 {
 public:
-  LogFilterInt(char *name, LogField * field, Action a, Operator o, unsigned value);
-    LogFilterInt(char *name, LogField * field, Action a, Operator o, size_t num_values, unsigned *value);
-    LogFilterInt(char *name, LogField * field, Action a, Operator o, char *values);
+  LogFilterInt(const char *name, LogField * field, Action a, Operator o, unsigned value);
+    LogFilterInt(const char *name, LogField * field, Action a, Operator o, size_t num_values, unsigned *value);
+    LogFilterInt(const char *name, LogField * field, Action a, Operator o, char *values);
     LogFilterInt(const LogFilterInt & rhs);
    ~LogFilterInt();
   bool operator==(LogFilterInt & rhs);
@@ -285,7 +285,7 @@ private:
 
 inline bool
 LogFilterString::_checkCondition(OperatorFunction f,
-                                 char *field_value, size_t field_value_length, char **val, LengthCondition lc)
+                                 const char *field_value, size_t field_value_length, char **val, LengthCondition lc)
 {
   bool retVal = false;
 

Modified: incubator/trafficserver/traffic/trunk/proxy/logging/LogFormat.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/logging/LogFormat.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/logging/LogFormat.cc (original)
+++ incubator/trafficserver/traffic/trunk/proxy/logging/LogFormat.cc Tue Apr 27 19:12:22 2010
@@ -79,13 +79,13 @@ const char *const
   -------------------------------------------------------------------------*/
 
 void
-LogFormat::setup(char *name, char *format_str, unsigned interval_sec)
+LogFormat::setup(const char *name, const char *format_str, unsigned interval_sec)
 {
   if (name == NULL && format_str == NULL) {
     Note("No name or field symbols for this format");
     m_valid = false;
   } else {
-    char *tag = " %<phn>";
+    const char *tag = " %<phn>";
     const size_t m_format_str_size = strlen(format_str) + (m_tagging_on ? strlen(tag) : 0) + 1;
     m_format_str = (char *) xmalloc(m_format_str_size);
     ink_strncpy(m_format_str, format_str, m_format_str_size);
@@ -115,7 +115,7 @@ LogFormat::setup(char *name, char *forma
   LogFormat::id_from_name
   -------------------------------------------------------------------------*/
 
-ink32 LogFormat::id_from_name(char *name)
+ink32 LogFormat::id_from_name(const char *name)
 {
   ink32
     id = 0;
@@ -142,7 +142,7 @@ ink32 LogFormat::id_from_name(char *name
   -------------------------------------------------------------------------*/
 
 void
-LogFormat::init_variables(char *name, char *fieldlist_str, char *printf_str, unsigned interval_sec)
+LogFormat::init_variables(const char *name, const char *fieldlist_str, const char *printf_str, unsigned interval_sec)
 {
 
   m_field_count = parse_symbol_string(fieldlist_str, &m_field_list, &m_aggregate);
@@ -245,7 +245,7 @@ LogFormat::LogFormat(LogFormatType type)
   form %<symbol>.
   -------------------------------------------------------------------------*/
 
-LogFormat::LogFormat(char *name, char *format_str, unsigned interval_sec)
+LogFormat::LogFormat(const char *name, const char *format_str, unsigned interval_sec)
   :
 m_interval_sec(0)
   ,
@@ -283,7 +283,7 @@ m_format_str(NULL)
 // LogBufferHeader does not store the format_str, if it did, we could probably
 // delete this.
 //
-LogFormat::LogFormat(char *name, char *fieldlist_str, char *printf_str, unsigned interval_sec)
+LogFormat::LogFormat(const char *name, const char *fieldlist_str, const char *printf_str, unsigned interval_sec)
   :
 m_interval_sec(0)
   ,
@@ -530,7 +530,7 @@ LogFormat::format_from_specification(cha
   -------------------------------------------------------------------------*/
 
 int
-LogFormat::parse_symbol_string(char *symbol_string, LogFieldList * field_list, bool * contains_aggregates)
+LogFormat::parse_symbol_string(const char *symbol_string, LogFieldList *field_list, bool *contains_aggregates)
 {
   char *sym_str;
   int field_count = 0;
@@ -751,7 +751,7 @@ LogFormat::parse_format_string(const cha
 void
 LogFormat::display(FILE * fd)
 {
-  static char *types[] = {
+  static const char *types[] = {
     "SQUID_LOG",
     "COMMON_LOG",
     "EXTENDED_LOG",

Modified: incubator/trafficserver/traffic/trunk/proxy/logging/LogFormat.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/logging/LogFormat.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/logging/LogFormat.h (original)
+++ incubator/trafficserver/traffic/trunk/proxy/logging/LogFormat.h Tue Apr 27 19:12:22 2010
@@ -48,10 +48,10 @@ class LogFormat
 {
 public:
   LogFormat(LogFormatType type);
-  LogFormat(char *name, char *format_str, unsigned interval_sec = 0);
-    LogFormat(char *name, char *fieldlist_str, char *printf_str, unsigned interval_sec = 0);
-    LogFormat(const LogFormat & rhs);
-   ~LogFormat();
+  LogFormat(const char *name, const char *format_str, unsigned interval_sec = 0);
+  LogFormat(const char *name, const char *fieldlist_str, const char *printf_str, unsigned interval_sec = 0);
+  LogFormat(const LogFormat & rhs);
+  ~LogFormat();
 
   void display(FILE * fd = stdout);
   void displayAsXML(FILE * fd = stdout);
@@ -102,10 +102,10 @@ public:
   };
 
 public:
-  static ink32 id_from_name(char *name);
+  static ink32 id_from_name(const char *name);
   static LogFormat *format_from_specification(char *spec,
                                               char **file_name, char **file_header, LogFileFormat * file_type);
-  static int parse_symbol_string(char *symbol_string, LogFieldList * field_list, bool * contains_aggregates);
+  static int parse_symbol_string(const char *symbol_string, LogFieldList *field_list, bool *contains_aggregates);
   static int parse_format_string(const char *format_str, char **printf_str, char **fields_str);
 
   // these are static because m_tagging_on is a class variable
@@ -120,8 +120,8 @@ public:
   };
 
 private:
-  void setup(char *name, char *format_str, unsigned interval_sec = 0);
-  void init_variables(char *name, char *fieldlist_str, char *printf_str, unsigned interval_sec);
+  void setup(const char *name, const char *format_str, unsigned interval_sec = 0);
+  void init_variables(const char *name, const char *fieldlist_str, const char *printf_str, unsigned interval_sec);
 
 public:
   LogFieldList m_field_list;

Modified: incubator/trafficserver/traffic/trunk/proxy/logging/LogHost.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/logging/LogHost.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/logging/LogHost.cc (original)
+++ incubator/trafficserver/traffic/trunk/proxy/logging/LogHost.cc Tue Apr 27 19:12:22 2010
@@ -315,7 +315,7 @@ LogHost::create_orphan_LogFile_object()
 {
   delete m_orphan_file;
 
-  char *orphan_ext = "orphan";
+  const char *orphan_ext = "orphan";
   unsigned name_len = (unsigned) (strlen(m_object_filename) + strlen(name()) + strlen(orphan_ext) + 16);
   char *name_buf = (char *) xmalloc(name_len);
   ink_assert(name_buf != NULL);

Modified: incubator/trafficserver/traffic/trunk/proxy/logging/LogObject.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/logging/LogObject.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/logging/LogObject.cc (original)
+++ incubator/trafficserver/traffic/trunk/proxy/logging/LogObject.cc Tue Apr 27 19:12:22 2010
@@ -187,7 +187,7 @@ LogObject::generate_filenames(const char
     --len;
   };                            // remove dot at end of name
 
-  char *ext = 0;
+  const char *ext = 0;
   int ext_len = 0;
   if (i < 0) {                  // no extension, add one
     switch (file_format) {
@@ -880,7 +880,7 @@ LogObjectManager::_manage_object(LogObje
       // do filesystem checks
       //
       if (log_object->do_filesystem_checks() < 0) {
-        char *msg = "The log file %s did not pass filesystem checks. " "No output will be produced for this log";
+        const char *msg = "The log file %s did not pass filesystem checks. " "No output will be produced for this log";
         Error(msg, log_object->get_full_filename());
         LogUtils::manager_alarm(LogUtils::LOG_ALARM_ERROR, msg, log_object->get_full_filename());
         retVal = ERROR_DOING_FILESYSTEM_CHECKS;
@@ -930,7 +930,7 @@ LogObjectManager::_solve_filename_confli
   char *filename = log_object->get_full_filename();
   if (access(filename, F_OK)) {
     if (errno != ENOENT) {
-      char *msg = "Cannot access log file %s: %s";
+      const char *msg = "Cannot access log file %s: %s";
       char *se = strerror(errno);
       Error(msg, filename, se);
       LogUtils::manager_alarm(LogUtils::LOG_ALARM_ERROR, msg, filename, se);
@@ -972,7 +972,7 @@ LogObjectManager::_solve_filename_confli
       if (maxConflicts == 0) {
         // do not take any action, and return an error status
         //
-        char *msg = "Cannot solve filename conflicts for log file %s";
+        const char *msg = "Cannot solve filename conflicts for log file %s";
         Error(msg, filename);
         LogUtils::manager_alarm(LogUtils::LOG_ALARM_ERROR, msg, filename);
         retVal = CANNOT_SOLVE_FILENAME_CONFLICTS;
@@ -995,7 +995,7 @@ LogObjectManager::_solve_filename_confli
           if (stat(filename, &s) < 0) {
             // an error happened while trying to get file info
             // 
-            char *msg = "Cannot stat log file %s: %s";
+            const char *msg = "Cannot stat log file %s: %s";
             char *se = strerror(errno);
             Error(msg, filename, se);
             LogUtils::manager_alarm(LogUtils::LOG_ALARM_ERROR, msg, filename, se);
@@ -1017,7 +1017,7 @@ LogObjectManager::_solve_filename_confli
           if (logfile.roll(time_now - log_object->get_rolling_interval(), time_now) == 0) {
             // an error happened while trying to roll the file
             // 
-            char *msg = "Cannot roll log file %s to fix log " "filename conflicts";
+            const char *msg = "Cannot roll log file %s to fix log " "filename conflicts";
             Error(msg, filename);
             LogUtils::manager_alarm(LogUtils::LOG_ALARM_ERROR, msg, filename);
             retVal = CANNOT_SOLVE_FILENAME_CONFLICTS;
@@ -1071,7 +1071,7 @@ LogObjectManager::_solve_internal_filena
       log_object->rename(new_name);
       retVal = _solve_internal_filename_conflicts(log_object, maxConflicts, fileNum);
     } else {
-      char *msg = "Cannot solve filename conflicts for log file %s";
+      const char *msg = "Cannot solve filename conflicts for log file %s";
       Error(msg, filename);
       LogUtils::manager_alarm(LogUtils::LOG_ALARM_ERROR, msg, filename);
       retVal = CANNOT_SOLVE_FILENAME_CONFLICTS;

Modified: incubator/trafficserver/traffic/trunk/proxy/logging/LogObject.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/logging/LogObject.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/logging/LogObject.h (original)
+++ incubator/trafficserver/traffic/trunk/proxy/logging/LogObject.h Tue Apr 27 19:12:22 2010
@@ -427,7 +427,7 @@ public:
   int log(LogAccess * lad);
   void display(FILE * str = stdout);
   void add_filter_to_all(LogFilter * filter);
-  LogObject *find_by_format_name(char *name);
+  LogObject *find_by_format_name(const char *name);
   size_t flush_buffers(size_t * to_disk, size_t * to_net = 0, size_t * to_pipe = 0);
   void open_local_pipes();
   void transfer_objects(LogObjectManager & mgr);
@@ -459,7 +459,7 @@ LogObjectManager::display(FILE * str)
 };
 
 inline LogObject *
-LogObjectManager::find_by_format_name(char *name)
+LogObjectManager::find_by_format_name(const char *name)
 {
   for (size_t i = 0; i < _numObjects; i++) {
     if (_objects[i]->m_format->name_id() == LogFormat::id_from_name(name)) {

Modified: incubator/trafficserver/traffic/trunk/proxy/logging/LogStandalone.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/logging/LogStandalone.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/logging/LogStandalone.cc (original)
+++ incubator/trafficserver/traffic/trunk/proxy/logging/LogStandalone.cc Tue Apr 27 19:12:22 2010
@@ -220,7 +220,7 @@ shutdown_system()
   -------------------------------------------------------------------------*/
 
 static void
-check_lockfile(char *config_dir, char *pgm_name)
+check_lockfile(const char *config_dir, const char *pgm_name)
 {
   int err;
   pid_t holding_pid;
@@ -286,7 +286,7 @@ syslog_thr_init()
   -------------------------------------------------------------------------*/
 
 void
-init_log_standalone(char *pgm_name, bool one_copy)
+init_log_standalone(const char *pgm_name, bool one_copy)
 {
   // ensure that only one copy of the sac is running
   //
@@ -322,7 +322,7 @@ init_log_standalone(char *pgm_name, bool
   -------------------------------------------------------------------------*/
 
 void
-init_log_standalone_basic(char *pgm_name)
+init_log_standalone_basic(const char *pgm_name)
 {
   openlog(pgm_name, LOG_PID | LOG_NDELAY | LOG_NOWAIT, LOG_DAEMON);
 

Modified: incubator/trafficserver/traffic/trunk/proxy/logging/LogUtils.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/logging/LogUtils.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/logging/LogUtils.cc (original)
+++ incubator/trafficserver/traffic/trunk/proxy/logging/LogUtils.cc Tue Apr 27 19:12:22 2010
@@ -261,7 +261,7 @@ LogUtils::ip_from_host(char *host)
   -------------------------------------------------------------------------*/
 
 void
-LogUtils::manager_alarm(LogUtils::AlarmType alarm_type, char *msg, ...)
+LogUtils::manager_alarm(LogUtils::AlarmType alarm_type, const char *msg, ...)
 {
   char msg_buf[LOG_MAX_FORMATTED_LINE];
   va_list ap;

Modified: incubator/trafficserver/traffic/trunk/proxy/logging/LogUtils.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/logging/LogUtils.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/logging/LogUtils.h (original)
+++ incubator/trafficserver/traffic/trunk/proxy/logging/LogUtils.h Tue Apr 27 19:12:22 2010
@@ -60,7 +60,7 @@ public:
   static char *timestamp_to_date_str(long timestamp);
   static char *timestamp_to_time_str(long timestamp);
   static unsigned ip_from_host(char *host);
-  static void manager_alarm(AlarmType alarm_type, char *msg, ...);
+  static void manager_alarm(AlarmType alarm_type, const char *msg, ...);
   static void strip_trailing_newline(char *buf);
   static char *escapify_url(Arena * arena, char *url, int len_in, int *len_out);
   static void remove_content_type_attributes(char *type_str, int *type_len);

Modified: incubator/trafficserver/traffic/trunk/proxy/logstats.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/logstats.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/logstats.cc (original)
+++ incubator/trafficserver/traffic/trunk/proxy/logstats.cc Tue Apr 27 19:12:22 2010
@@ -331,7 +331,7 @@ ArgumentDescription argument_description
 };
 int n_argument_descriptions = SIZE(argument_descriptions);
 
-static char *USAGE_LINE =
+static const char *USAGE_LINE =
   "Usage: " PROGRAM_NAME " [-l logfile] [-o origin[,...]] [-O originfile] [-m minhits] [-inshv]";
 
 

Modified: incubator/trafficserver/traffic/trunk/proxy/mgmt2/Alarms.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/mgmt2/Alarms.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/mgmt2/Alarms.cc (original)
+++ incubator/trafficserver/traffic/trunk/proxy/mgmt2/Alarms.cc Tue Apr 27 19:12:22 2010
@@ -181,7 +181,7 @@ Alarms::resolveAlarm(alarm_t a, char *ip
 
 
 void
-Alarms::signalAlarm(alarm_t a, char *desc, char *ip)
+Alarms::signalAlarm(alarm_t a, const char *desc, const char *ip)
 {
   static time_t last_sent = 0;
   static char prev_alarm_text[2048] = "";

Modified: incubator/trafficserver/traffic/trunk/proxy/mgmt2/Alarms.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/mgmt2/Alarms.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/mgmt2/Alarms.h (original)
+++ incubator/trafficserver/traffic/trunk/proxy/mgmt2/Alarms.h Tue Apr 27 19:12:22 2010
@@ -124,7 +124,7 @@ public:
   void registerCallback(AlarmCallbackFunc func);
   bool isCurrentAlarm(alarm_t a, char *ip = NULL);
 
-  void signalAlarm(alarm_t t, char *desc = NULL, char *ip = NULL);
+  void signalAlarm(alarm_t t, const char *desc = NULL, const char *ip = NULL);
   void resolveAlarm(alarm_t a, char *ip = NULL);
 
   void constructAlarmMessage(char *ip, char *message, int max);

Modified: incubator/trafficserver/traffic/trunk/proxy/mgmt2/AutoConf.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/mgmt2/AutoConf.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/mgmt2/AutoConf.cc (original)
+++ incubator/trafficserver/traffic/trunk/proxy/mgmt2/AutoConf.cc Tue Apr 27 19:12:22 2010
@@ -176,7 +176,7 @@ void
 AutoConf::processAction(char *submission, textBuffer * output)
 {
   InkHashTable *vars = processFormSubmission(submission);
-  char *action = "Unknown";
+  const char *action = "Unknown";
   PACresult r = PAC_OK;
   bool genReply = true;
 
@@ -218,7 +218,7 @@ AutoConf::processAction(char *submission
 // void AutoConf::pacErrorResponse(char* action, PACresult error, textBuffer* output)
 //
 void
-AutoConf::pacErrorResponse(char *action, PACresult error, textBuffer * output)
+AutoConf::pacErrorResponse(const char *action, PACresult error, textBuffer * output)
 {
   const char a[] =
     "<html>\n<head>\n<title> Client AutoConfig Error </title>\n</head>\n<body bgcolor=\"#FFFFFF\">\n<h1> Client AutoConfig Error </h1>\n<p>\nClient AutoCnfig File ";

Modified: incubator/trafficserver/traffic/trunk/proxy/mgmt2/AutoConf.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/mgmt2/AutoConf.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/mgmt2/AutoConf.h (original)
+++ incubator/trafficserver/traffic/trunk/proxy/mgmt2/AutoConf.h Tue Apr 27 19:12:22 2010
@@ -61,7 +61,7 @@ private:
   void byPass(textBuffer & newFile, Tokenizer & tok, const char *funcStr);
   void addProxy(textBuffer & output, char *hostname, char *port, bool first, bool final);
   bool BuildFile(InkHashTable * parameters, textBuffer & newFile);
-  void pacErrorResponse(char *action, PACresult error, textBuffer * output);
+  void pacErrorResponse(const char *action, PACresult error, textBuffer * output);
 };
 
 extern AutoConf *autoConfObj;

Modified: incubator/trafficserver/traffic/trunk/proxy/mgmt2/BaseRecords.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/mgmt2/BaseRecords.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/mgmt2/BaseRecords.cc (original)
+++ incubator/trafficserver/traffic/trunk/proxy/mgmt2/BaseRecords.cc Tue Apr 27 19:12:22 2010
@@ -80,7 +80,7 @@ destroyRecords(Records * to_destroy)
   }
 }
 
-BaseRecords::BaseRecords(char *mpath, char *cfile, char *efile)
+BaseRecords::BaseRecords(char *mpath, const char *cfile, char *efile)
 {
   char fpath[PATH_NAME_MAX];
   InkHashTableEntry *hash_entry;
@@ -435,7 +435,7 @@ BaseRecords::defineRecords()
     recs[*cur_rec].opaque_token = NULL;
     recs[*cur_rec].list = NULL;
 
-    recs[*cur_rec].name = RecordsConfig[r].name;
+    recs[*cur_rec].name = (char*)RecordsConfig[r].name;
     recs[*cur_rec].stype = RecordsConfig[r].value_type;
 
     switch (recs[*cur_rec].stype) {
@@ -523,8 +523,8 @@ BaseRecords::rereadRecordFile(char *path
   required_records_ht = new MgmtHashTable("required_records_ht", false, InkHashTableKeyType_String);
   for (r = 0; RecordsConfig[r].value_type != INVALID; r++) {
     if (RecordsConfig[r].required == RR_REQUIRED) {
-      char *name = RecordsConfig[r].name;
-      required_records_ht->mgmt_hash_table_insert(name, name);
+      const char *name = RecordsConfig[r].name;
+      required_records_ht->mgmt_hash_table_insert(name, (void*)name);
     }
   }
 

Modified: incubator/trafficserver/traffic/trunk/proxy/mgmt2/BaseRecords.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/mgmt2/BaseRecords.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/mgmt2/BaseRecords.h (original)
+++ incubator/trafficserver/traffic/trunk/proxy/mgmt2/BaseRecords.h Tue Apr 27 19:12:22 2010
@@ -122,7 +122,7 @@ class BaseRecords
 
 public:
 
-  BaseRecords(char *mpath, char *cfile, char *efile = NULL);
+  BaseRecords(char *mpath, const char *cfile, char *efile = NULL);
    ~BaseRecords();
 
   void defineRecords();

Modified: incubator/trafficserver/traffic/trunk/proxy/mgmt2/FileManager.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/mgmt2/FileManager.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/mgmt2/FileManager.cc (original)
+++ incubator/trafficserver/traffic/trunk/proxy/mgmt2/FileManager.cc Tue Apr 27 19:12:22 2010
@@ -50,7 +50,7 @@ static const char snapDir[] = "snapshots
 
 typedef fileEntry snapshot;
 
-char *SnapshotStrings[] = { "Request Successful\n",
+const char *SnapshotStrings[] = { "Request Successful\n",
   "No Snapshot Directory",
   "Snapshot was not found\n",
   "Creation of snapshot directory failed\n",
@@ -186,7 +186,7 @@ FileManager::registerCallback(FileCallba
 //  Pointers to the new objects are stored in the bindings hashtable
 //
 void
-FileManager::addFile(char *baseFileName, bool root_access_needed)
+FileManager::addFile(const char *baseFileName, bool root_access_needed)
 {
 
   ink_assert(baseFileName != NULL);
@@ -207,7 +207,7 @@ FileManager::addFile(char *baseFileName,
 //  If there is no binding, falseis returned
 //
 bool
-FileManager::getRollbackObj(char *baseFileName, Rollback ** rbPtr)
+FileManager::getRollbackObj(const char *baseFileName, Rollback ** rbPtr)
 {
 
   InkHashTableValue lookup;

Modified: incubator/trafficserver/traffic/trunk/proxy/mgmt2/FileManager.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/mgmt2/FileManager.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/mgmt2/FileManager.h (original)
+++ incubator/trafficserver/traffic/trunk/proxy/mgmt2/FileManager.h Tue Apr 27 19:12:22 2010
@@ -112,8 +112,8 @@ class FileManager:public MultiFile
 public:
   FileManager();
   ~FileManager();
-  void addFile(char *baseFileName, bool root_access_needed);
-  bool getRollbackObj(char *baseFileName, Rollback ** rbPtr);
+  void addFile(const char *baseFileName, bool root_access_needed);
+  bool getRollbackObj(const char *baseFileName, Rollback ** rbPtr);
   void registerCallback(FileCallbackFunc func);
   void fileChanged(const char *baseFileName);
   textBuffer *filesManaged();

Modified: incubator/trafficserver/traffic/trunk/proxy/mgmt2/LMRecords.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/mgmt2/LMRecords.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/mgmt2/LMRecords.h (original)
+++ incubator/trafficserver/traffic/trunk/proxy/mgmt2/LMRecords.h Tue Apr 27 19:12:22 2010
@@ -43,7 +43,7 @@ class LMRecords:public BaseRecords
 
 public:
 
-  LMRecords(char *mpath, char *cfile, char *efile):BaseRecords(mpath, cfile, efile)
+  LMRecords(char *mpath, const char *cfile, char *efile):BaseRecords(mpath, cfile, efile)
   {
     //char fpath[PATH_NAME_MAX];
     time_last_config_change = 0;

Modified: incubator/trafficserver/traffic/trunk/proxy/mgmt2/LocalManager.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/mgmt2/LocalManager.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/mgmt2/LocalManager.cc (original)
+++ incubator/trafficserver/traffic/trunk/proxy/mgmt2/LocalManager.cc Tue Apr 27 19:12:22 2010
@@ -144,7 +144,7 @@ char snap_filename[FILE_NAME_MAX+1] = "s
 void
 LocalManager::clearStats()
 {
-  char *statsPath;
+  const char *statsPath;
   char local_state_dir[FILE_NAME_MAX];
   char snap_file[FILE_NAME_MAX];
   struct stat s;
@@ -340,7 +340,7 @@ BaseManager(), run_proxy(proxy_on), reco
 
     cport = ink_strtok_r(proxy_server_other_ports, " ", &last);
     for (; pnum < MAX_PROXY_SERVER_PORTS && cport; pnum++) {
-      char *attr = "X";
+      const char *attr = "X";
 
       for (int j = 0; cport[j]; j++) {
         if (cport[j] == ':') {
@@ -966,7 +966,7 @@ LocalManager::sendMgmtMsgToProcesses(Mgm
             // End of TS down
           } else {
             // TS is still up, but the connection is lost
-            char *err_msg =
+            const char *err_msg =
               "The TS-TM connection is broken for some reason. Either restart TS and TM or correct this error for TM to display TS statistics correctly";
             lmgmt->alarm_keeper->signalAlarm(MGMT_ALARM_PROXY_SYSTEM_ERROR, err_msg);
           }
@@ -986,7 +986,7 @@ LocalManager::sendMgmtMsgToProcesses(Mgm
 
 
 void
-LocalManager::signalFileChange(char *var_name)
+LocalManager::signalFileChange(const char *var_name)
 {
   signalEvent(MGMT_EVENT_CONFIG_FILE_UPDATE, var_name);
   return;
@@ -1417,7 +1417,7 @@ bindProxyPort(int proxy_port, in_addr_t 
 }                               /* End bindProxyPort */
 
 void
-LocalManager::signalAlarm(int alarm_id, char *desc, char *ip)
+LocalManager::signalAlarm(int alarm_id, const char *desc, const char *ip)
 {
   if (alarm_keeper)
     alarm_keeper->signalAlarm((alarm_t) alarm_id, desc, ip);

Modified: incubator/trafficserver/traffic/trunk/proxy/mgmt2/LocalManager.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/mgmt2/LocalManager.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/mgmt2/LocalManager.h (original)
+++ incubator/trafficserver/traffic/trunk/proxy/mgmt2/LocalManager.h Tue Apr 27 19:12:22 2010
@@ -96,10 +96,10 @@ public:
   void sendMgmtMsgToProcesses(int msg_id, const char *data_raw, int data_len);
   void sendMgmtMsgToProcesses(MgmtMessageHdr * mh);
 
-  void signalFileChange(char *var_name);
+  void signalFileChange(const char *var_name);
   void signalEvent(int msg_id, const char *data_str);
   void signalEvent(int msg_id, const char *data_raw, int data_len);
-  void signalAlarm(int alarm_id, char *desc = NULL, char *ip = NULL);
+  void signalAlarm(int alarm_id, const char *desc = NULL, const char *ip = NULL);
 
   void processEventQueue();
   bool startProxy();

Modified: incubator/trafficserver/traffic/trunk/proxy/mgmt2/Main.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/mgmt2/Main.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/mgmt2/Main.cc (original)
+++ incubator/trafficserver/traffic/trunk/proxy/mgmt2/Main.cc Tue Apr 27 19:12:22 2010
@@ -125,8 +125,8 @@ char system_log_dir[PATH_NAME_MAX + 1] =
 char mgmt_path[PATH_NAME_MAX + 1] = DEFAULT_SYSTEM_CONFIG_DIRECTORY;
 
 // By default, set the current directory as base
-char *ts_base_dir = ".";
-char *recs_conf = "records.config";
+const char *ts_base_dir = ".";
+const char *recs_conf = "records.config";
 
 int fds_limit;
 
@@ -416,7 +416,7 @@ chdir_root()
 
 #define set_rlimit(name,max_it,ulim_it) max_out_limit(#name, name, max_it, ulim_it)
 static rlim_t
-max_out_limit(char *name, int which, bool max_it = true, bool unlim_it = true)
+max_out_limit(const char *name, int which, bool max_it = true, bool unlim_it = true)
 {
   struct rlimit rl;
 
@@ -1541,7 +1541,7 @@ runAsUser(char *userName)
 //
 //
 void
-extractConfigInfo(char *mgmt_path, char *recs_conf, char *userName, int *fds_throttle)
+extractConfigInfo(char *mgmt_path, const char *recs_conf, char *userName, int *fds_throttle)
 {
   char file[1024];
   bool useridFound = false;

Modified: incubator/trafficserver/traffic/trunk/proxy/mgmt2/Main.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/mgmt2/Main.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/mgmt2/Main.h (original)
+++ incubator/trafficserver/traffic/trunk/proxy/mgmt2/Main.h Tue Apr 27 19:12:22 2010
@@ -45,7 +45,7 @@
 void MgmtShutdown(int status);
 void fileUpdated(char *fname);
 void runAsUser(char *userName);
-void extractConfigInfo(char *mgmt_path, char *recs_conf, char *userName, int *fds_throttle);
+void extractConfigInfo(char *mgmt_path, const char *recs_conf, char *userName, int *fds_throttle);
 void printUsage(void);
 
 extern MgmtPing *icmp_ping;
@@ -56,11 +56,11 @@ extern AppVersionInfo appVersionInfo;
 
 // Global strings 
 extern char mgmt_path[];
-extern char *recs_conf;
+extern const char *recs_conf;
 //extern char *lm_conf;
 
 // Root of Traffic Server
-extern char *ts_base_dir;
+extern const char *ts_base_dir;
 
 // Global variable to replace ifdef MGMT_LAUNCH_PROXY so that
 // we can turn on/off proxy launch at runtime to facilitate

Modified: incubator/trafficserver/traffic/trunk/proxy/mgmt2/MgmtDefs.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/mgmt2/MgmtDefs.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/mgmt2/MgmtDefs.h (original)
+++ incubator/trafficserver/traffic/trunk/proxy/mgmt2/MgmtDefs.h Tue Apr 27 19:12:22 2010
@@ -72,7 +72,7 @@ typedef void *(*MgmtCallback) (void *opa
 /* Structs used in Average Statistics calculations */
 struct StatTwoIntSamples
 {
-  char *lm_record_name;
+  const char *lm_record_name;
   ink_hrtime previous_time;
   ink_hrtime current_time;
   MgmtInt previous_value;
@@ -90,7 +90,7 @@ struct StatTwoIntSamples
 
 struct StatTwoFloatSamples
 {
-  char *lm_record_name;
+  const char *lm_record_name;
   ink_hrtime previous_time;
   ink_hrtime current_time;
   MgmtFloat previous_value;

Modified: incubator/trafficserver/traffic/trunk/proxy/mgmt2/MultiFile.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/mgmt2/MultiFile.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/mgmt2/MultiFile.h (original)
+++ incubator/trafficserver/traffic/trunk/proxy/mgmt2/MultiFile.h Tue Apr 27 19:12:22 2010
@@ -69,7 +69,7 @@ protected:
   bool isManaged(const char *fileName);
   void addSelectOptions(textBuffer * output, ExpandingArray * options);
   char *managedDir;
-  char *dirDescript;
+  const char *dirDescript;
 };
 
 int fileEntryCmpFunc(const void *e1, const void *e2);

Modified: incubator/trafficserver/traffic/trunk/proxy/mgmt2/ProcessRecords.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/mgmt2/ProcessRecords.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/mgmt2/ProcessRecords.h (original)
+++ incubator/trafficserver/traffic/trunk/proxy/mgmt2/ProcessRecords.h Tue Apr 27 19:12:22 2010
@@ -44,7 +44,7 @@ class ProcessRecords:public BaseRecords
 
 public:
 
-  ProcessRecords(char *mpath, char *cfile, char *lmfile):BaseRecords(mpath, cfile, lmfile)
+  ProcessRecords(char *mpath, const char *cfile, char *lmfile):BaseRecords(mpath, cfile, lmfile)
   {
     ignore_manager = false;
   };

Modified: incubator/trafficserver/traffic/trunk/proxy/mgmt2/RecordsConfig.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/mgmt2/RecordsConfig.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/mgmt2/RecordsConfig.cc (original)
+++ incubator/trafficserver/traffic/trunk/proxy/mgmt2/RecordsConfig.cc Tue Apr 27 19:12:22 2010
@@ -4743,7 +4743,7 @@ LibRecordsConfigInit()
         break;
 
       case INK_STRING:
-        RecRegisterStatString(type, RecordsConfig[r].name, RecordsConfig[r].value, RECP_NON_PERSISTENT);
+        RecRegisterStatString(type, RecordsConfig[r].name, (RecString)RecordsConfig[r].value, RECP_NON_PERSISTENT);
         break;
 
       case INK_COUNTER:

Modified: incubator/trafficserver/traffic/trunk/proxy/mgmt2/RecordsConfig.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/mgmt2/RecordsConfig.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/mgmt2/RecordsConfig.h (original)
+++ incubator/trafficserver/traffic/trunk/proxy/mgmt2/RecordsConfig.h Tue Apr 27 19:12:22 2010
@@ -65,14 +65,14 @@ enum RecordAccessType
 struct RecordElement
 {
   int type;                     // type of the record (CONFIG, PROCESS, etc)
-  char *name;                   // name of the record
-  char *description;            // short description of the record
+  const char *name;             // name of the record
+  const char *description;      // short description of the record
   MgmtType value_type;          // type of the record value (INT, FLOAT, etc)
-  char *value;                  // default value for the record
+  const char *value;            // default value for the record
   RecordUpdateType update;      // action necessary to change a configuration
   RecordRequiredType required;  // is records required to be in records.config?
   RecordCheckType check;
-  char *regex;
+  const char *regex;
   RecordAccessType access;      // access level of the record 
 };
 

Modified: incubator/trafficserver/traffic/trunk/proxy/mgmt2/Rollback.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/mgmt2/Rollback.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/mgmt2/Rollback.cc (original)
+++ incubator/trafficserver/traffic/trunk/proxy/mgmt2/Rollback.cc Tue Apr 27 19:12:22 2010
@@ -43,7 +43,7 @@
 #define DEFAULT_BACKUPS 2
 
 // Error Strings
-char *RollbackStrings[] = { "Rollback Ok",
+const char *RollbackStrings[] = { "Rollback Ok",
   "File was not found",
   "Version was out of date",
   "System Call Error",

Modified: incubator/trafficserver/traffic/trunk/proxy/mgmt2/StatAggregation.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/mgmt2/StatAggregation.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/mgmt2/StatAggregation.cc (original)
+++ incubator/trafficserver/traffic/trunk/proxy/mgmt2/StatAggregation.cc Tue Apr 27 19:12:22 2010
@@ -59,7 +59,7 @@
 const ink_hrtime hrThreshold = 10 * HRTIME_SECOND;
 
 void
-AgInt_generic(char *processVar, char *nodeVar)
+AgInt_generic(const char *processVar, const char *nodeVar)
 {
   MgmtInt tmp;
 
@@ -71,7 +71,7 @@ AgInt_generic(char *processVar, char *no
 }
 
 void
-AgInt_generic_scale(char *processVar, char *nodeVar, double factor)
+AgInt_generic_scale(const char *processVar, const char *nodeVar, double factor)
 {
   MgmtInt tmp;
 
@@ -96,7 +96,7 @@ AgFloat_generic(char *processVar, char *
 }
 
 void
-AgFloat_generic_scale_to_int(char *processVar, char *nodeVar, double factor)
+AgFloat_generic_scale_to_int(const char *processVar, const char *nodeVar, double factor)
 {
   MgmtFloat tmp;
 
@@ -220,7 +220,7 @@ Ag_cacheHits()
   };
 
   // the position in this array is significant and hardcoded
-  static char *hit_counts_names[] = {
+  static const char *hit_counts_names[] = {
     "proxy.node.http.cache_hit_fresh_avg_10s",  // 0
     "proxy.node.http.cache_hit_revalidated_avg_10s",    // 1
     "proxy.node.http.cache_hit_ims_avg_10s",    // 2
@@ -233,7 +233,7 @@ Ag_cacheHits()
   };
 
   // the position in this array is significant and hardcoded
-  static char *miss_counts_names[] = {
+  static const char *miss_counts_names[] = {
     "proxy.node.http.cache_miss_cold_avg_10s",  // 0
     "proxy.node.http.cache_miss_changed_avg_10s",       // 1 
     "proxy.node.http.cache_miss_not_cacheable_avg_10s", // 2
@@ -382,8 +382,8 @@ Ag_HostdbHitRate()
   const ink_hrtime window = 10 * HRTIME_SECOND; // update every 10 seconds
   static StatTwoIntSamples node_hostdb_total_lookups = { "proxy.process.hostdb.total_lookups", 0, 0, 0, 0 };
   static StatTwoIntSamples node_hostdb_hits = { "proxy.process.hostdb.total_hits", 0, 0, 0, 0 };
-  static char *node_hostdb_total_lookups_name = "proxy.node.hostdb.total_lookups_avg_10s";
-  static char *node_hostdb_hits_name = "proxy.node.hostdb.total_hits_avg_10s";
+  static const char *node_hostdb_total_lookups_name = "proxy.node.hostdb.total_lookups_avg_10s";
+  static const char *node_hostdb_hits_name = "proxy.node.hostdb.total_hits_avg_10s";
   int status;
   MgmtInt hostdbHits;
   MgmtInt hostdbLookups;
@@ -530,7 +530,7 @@ Ag_TransactionPercentsAndMeanTimes()
   };
 
   // the position in this array is significant and hardcoded
-  static char *counts_names[] = {
+  static const char *counts_names[] = {
     "proxy.node.http.transaction_counts_avg_10s.hit_fresh",     // 0
     "proxy.node.http.transaction_counts_avg_10s.hit_revalidated",       // 1
     "proxy.node.http.transaction_counts_avg_10s.miss_cold",     // 4
@@ -549,7 +549,7 @@ Ag_TransactionPercentsAndMeanTimes()
   };
 
   // the position in this array is significant and hardcoded
-  static char *frac_names[] = {
+  static const char *frac_names[] = {
     "proxy.node.http.transaction_frac_avg_10s.hit_fresh",       // 0
     "proxy.node.http.transaction_frac_avg_10s.hit_revalidated", // 1
     "proxy.node.http.transaction_frac_avg_10s.miss_cold",       // 4
@@ -568,7 +568,7 @@ Ag_TransactionPercentsAndMeanTimes()
   };
 
   // the position in this array is significant and hardcoded
-  static char *frac_int_names[] = {
+  static const char *frac_int_names[] = {
     "proxy.node.http.transaction_frac_avg_10s.hit_fresh_int_pct",       // 0
     "proxy.node.http.transaction_frac_avg_10s.hit_revalidated_int_pct", // 1
     "proxy.node.http.transaction_frac_avg_10s.miss_cold_int_pct",       // 4
@@ -587,7 +587,7 @@ Ag_TransactionPercentsAndMeanTimes()
   };
 
   // the position in this array is significant and hardcoded
-  static char *avgtime_names[] = {
+  static const char *avgtime_names[] = {
     "proxy.node.http.transaction_msec_avg_10s.hit_fresh",       // 0
     "proxy.node.http.transaction_msec_avg_10s.hit_revalidated", // 1
     "proxy.node.http.transaction_msec_avg_10s.miss_cold",       // 4
@@ -698,10 +698,10 @@ Ag_Throughput()
   static StatTwoIntSamples node_nntp_downstream_total_bytes = { "proxy.node.nntp.downstream_total_bytes", 0, 0, 0, 0 };
   static StatTwoIntSamples node_ftp_downstream_total_bytes = { "proxy.node.ftp.downstream_total_bytes", 0, 0, 0, 0 };
   static StatTwoIntSamples node_rni_downstream_total_bytes = { "proxy.node.rni.downstream_total_bytes", 0, 0, 0, 0 };
-  static char *node_http_ua_total_response_bytes_name = "proxy.node.http.user_agent_total_response_bytesavg_10s";
-  static char *node_nntp_downstream_total_bytes_name = "proxy.node.nntp.downstream_total_bytes_avg_10s";
-  static char *node_ftp_downstream_total_bytes_name = "proxy.node.ftp.downstream_total_bytes_avg_10s";
-  static char *node_rni_downstream_total_bytes_name = "proxy.node.rni.downstream_total_bytes_avg_10s";
+  static const char *node_http_ua_total_response_bytes_name = "proxy.node.http.user_agent_total_response_bytesavg_10s";
+  static const char *node_nntp_downstream_total_bytes_name = "proxy.node.nntp.downstream_total_bytes_avg_10s";
+  static const char *node_ftp_downstream_total_bytes_name = "proxy.node.ftp.downstream_total_bytes_avg_10s";
+  static const char *node_rni_downstream_total_bytes_name = "proxy.node.rni.downstream_total_bytes_avg_10s";
   static ink_hrtime lastThroughputTime = 0;
   static MgmtInt lastBytesThrough = 0;
   // These aren't used.
@@ -1011,8 +1011,8 @@ Ag_Bytes()
   const ink_hrtime window = 10 * HRTIME_SECOND; // update every 10 seconds
   static StatTwoIntSamples node_ua_total_bytes = { "proxy.node.user_agent_total_bytes", 0, 0, 0, 0 };
   static StatTwoIntSamples node_os_total_bytes = { "proxy.node.origin_server_total_bytes", 0, 0, 0, 0 };
-  static char *node_ua_total_bytes_name = "proxy.node.user_agent_total_bytes_avg_10s";
-  static char *node_os_total_bytes_name = "proxy.node.origin_server_total_bytes_avg_10s";
+  static const char *node_ua_total_bytes_name = "proxy.node.user_agent_total_bytes_avg_10s";
+  static const char *node_os_total_bytes_name = "proxy.node.origin_server_total_bytes_avg_10s";
   int status;
   MgmtFloat hitRate;
 

Modified: incubator/trafficserver/traffic/trunk/proxy/mgmt2/api2/CfgContextUtils.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/mgmt2/api2/CfgContextUtils.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/mgmt2/api2/CfgContextUtils.cc (original)
+++ incubator/trafficserver/traffic/trunk/proxy/mgmt2/api2/CfgContextUtils.cc Tue Apr 27 19:12:22 2010
@@ -1731,7 +1731,7 @@ tokens_to_pdss_format(TokenList * tokens
 {
   Token *tok, *last_tok;
   int i = 0;
-  char *sspecs[NUM_SEC_SPECS] = { "time", "src_ip", "prefix", "suffix", "port", "method", "scheme", "tag" };
+  const char *sspecs[NUM_SEC_SPECS] = { "time", "src_ip", "prefix", "suffix", "port", "method", "scheme", "tag" };
 
   //ink_assert(tokens && first_tok && pdss);
   if (!tokens || !first_tok || !pdss)

Modified: incubator/trafficserver/traffic/trunk/proxy/mgmt2/api2/CoreAPI.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/mgmt2/api2/CoreAPI.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/mgmt2/api2/CoreAPI.cc (original)
+++ incubator/trafficserver/traffic/trunk/proxy/mgmt2/api2/CoreAPI.cc Tue Apr 27 19:12:22 2010
@@ -62,7 +62,7 @@ CallbackTable *local_event_callbacks;
  * uses the update type that's stored with the record rec_name to determine
  * which type of INKActionNeedT to return.
  */
-INKActionNeedT determine_action_need(char *rec_name);
+INKActionNeedT determine_action_need(const char *rec_name);
 
 /*-------------------------------------------------------------------------
  * Init
@@ -71,7 +71,7 @@ INKActionNeedT determine_action_need(cha
  * eg. set up global structures; called by the INKMgmtAPI::INKInit() 
  */
 INKError
-Init(char *socket_path)
+Init(const char *socket_path)
 {
   // socket_path should be null; only applies to remote clients
   local_event_callbacks = create_callback_table("local_callbacks");
@@ -294,7 +294,7 @@ HardRestart()
  * The record info associated with rec_name will be returned in rec_ele.
  */
 INKError
-MgmtRecordGet(char *rec_name, INKRecordEle * rec_ele)
+MgmtRecordGet(const char *rec_name, INKRecordEle * rec_ele)
 {
   RecDataT rec_type;
   char rec_val[MAX_BUF_SIZE];
@@ -381,7 +381,7 @@ MgmtRecordGet(char *rec_name, INKRecordE
  * then returns INK_ACTION_UNDEFINED
  */
 INKActionNeedT
-determine_action_need(char *rec_name)
+determine_action_need(const char *rec_name)
 {
   int r;                        // index in RecordsConfig[]
   RecordUpdateType update_t;
@@ -429,7 +429,7 @@ determine_action_need(char *rec_name)
  *   and false otherwise 
  */
 INKError
-MgmtRecordSet(char *rec_name, char *val, INKActionNeedT * action_need)
+MgmtRecordSet(const char *rec_name, const char *val, INKActionNeedT * action_need)
 {
   Debug("RecOp", "[MgmtRecordSet] Start\n");
 
@@ -455,7 +455,7 @@ MgmtRecordSet(char *rec_name, char *val,
  * Converts the integer value to a string and call MgmtRecordSet
  */
 INKError
-MgmtRecordSetInt(char *rec_name, MgmtInt int_val, INKActionNeedT * action_need)
+MgmtRecordSetInt(const char *rec_name, MgmtInt int_val, INKActionNeedT * action_need)
 {
   if (!rec_name || !action_need)
     return INK_ERR_PARAMS;
@@ -485,7 +485,7 @@ MgmtRecordSetInt(char *rec_name, MgmtInt
  * converts the counter_val to a string and uses MgmtRecordSet
  */
 INKError
-MgmtRecordSetCounter(char *rec_name, MgmtIntCounter counter_val, INKActionNeedT * action_need)
+MgmtRecordSetCounter(const char *rec_name, MgmtIntCounter counter_val, INKActionNeedT * action_need)
 {
   if (!rec_name || !action_need)
     return INK_ERR_PARAMS;
@@ -516,7 +516,7 @@ MgmtRecordSetCounter(char *rec_name, Mgm
  * and calls MgmtRecordSet
  */
 INKError
-MgmtRecordSetFloat(char *rec_name, MgmtFloat float_val, INKActionNeedT * action_need)
+MgmtRecordSetFloat(const char *rec_name, MgmtFloat float_val, INKActionNeedT * action_need)
 {
   if (!rec_name || !action_need)
     return INK_ERR_PARAMS;
@@ -546,7 +546,7 @@ MgmtRecordSetFloat(char *rec_name, MgmtF
  * The string value is copied so it's okay to free the string later
  */
 INKError
-MgmtRecordSetString(char *rec_name, INKString string_val, INKActionNeedT * action_need)
+MgmtRecordSetString(const char *rec_name, const char *string_val, INKActionNeedT * action_need)
 {
   return MgmtRecordSet(rec_name, string_val, action_need);
 }
@@ -1096,7 +1096,7 @@ StatsReset()
  * location specified by "filepath"  
  */
 INKError
-EncryptToFile(char *passwd, char *filepath)
+EncryptToFile(const char *passwd, const char *filepath)
 {
   //AuthString fileAuthStr(filepath);
   //AuthString passwdAuthStr(passwd);

Modified: incubator/trafficserver/traffic/trunk/proxy/mgmt2/api2/CoreAPI.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/mgmt2/api2/CoreAPI.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/mgmt2/api2/CoreAPI.h (original)
+++ incubator/trafficserver/traffic/trunk/proxy/mgmt2/api2/CoreAPI.h Tue Apr 27 19:12:22 2010
@@ -40,7 +40,7 @@ extern "C"
 {
 #endif /* __cplusplus */
 
-INKError Init(char *socket_path = NULL);
+INKError Init(const char *socket_path = NULL);
 INKError Terminate();
 
 void Diags(INKDiagsT mode, const char *fmt, va_list ap);
@@ -60,13 +60,13 @@ INKError HardRestart();         //restar
  ***************************************************************************/
 /* For remote implementation of this interface, these functions will have
    to marshal/unmarshal and send request across the network */
-INKError MgmtRecordGet(char *rec_name, INKRecordEle * rec_ele);
+INKError MgmtRecordGet(const char *rec_name, INKRecordEle * rec_ele);
 
-INKError MgmtRecordSet(char *rec_name, char *val, INKActionNeedT * action_need);
-INKError MgmtRecordSetInt(char *rec_name, MgmtInt int_val, INKActionNeedT * action_need);
-INKError MgmtRecordSetCounter(char *rec_name, MgmtIntCounter counter_val, INKActionNeedT * action_need);
-INKError MgmtRecordSetFloat(char *rec_name, MgmtFloat float_val, INKActionNeedT * action_need);
-INKError MgmtRecordSetString(char *rec_name, MgmtString string_val, INKActionNeedT * action_need);
+INKError MgmtRecordSet(const char *rec_name, const char *val, INKActionNeedT * action_need);
+INKError MgmtRecordSetInt(const char *rec_name, MgmtInt int_val, INKActionNeedT * action_need);
+INKError MgmtRecordSetCounter(const char *rec_name, MgmtIntCounter counter_val, INKActionNeedT *action_need);
+INKError MgmtRecordSetFloat(const char *rec_name, MgmtFloat float_val, INKActionNeedT * action_need);
+INKError MgmtRecordSetString(const char *rec_name, const char*string_val, INKActionNeedT * action_need);
 
 
 /***************************************************************************
@@ -99,7 +99,7 @@ INKError StatsReset();
 /***************************************************************************
  * Miscellaneous Utility
  ***************************************************************************/
-INKError EncryptToFile(char *passwd, char *filepath);
+INKError EncryptToFile(const char *passwd, const char *filepath);
 
 /*-------------------------------------------------------------
  * rmserver.cfg 

Modified: incubator/trafficserver/traffic/trunk/proxy/mgmt2/api2/CoreAPIShared.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/mgmt2/api2/CoreAPIShared.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/mgmt2/api2/CoreAPIShared.cc (original)
+++ incubator/trafficserver/traffic/trunk/proxy/mgmt2/api2/CoreAPIShared.cc Tue Apr 27 19:12:22 2010
@@ -218,7 +218,7 @@ error:                         /* "Houst
 
 /* Modified from TrafficCop.cc (open_socket) */
 int
-connectDirect(char *host, int port, inku64 timeout)
+connectDirect(const char *host, int port, inku64 timeout)
 {
 #ifdef _WIN32
   TimedIOStatus ret;

Modified: incubator/trafficserver/traffic/trunk/proxy/mgmt2/api2/CoreAPIShared.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/mgmt2/api2/CoreAPIShared.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/mgmt2/api2/CoreAPIShared.h (original)
+++ incubator/trafficserver/traffic/trunk/proxy/mgmt2/api2/CoreAPIShared.h Tue Apr 27 19:12:22 2010
@@ -76,7 +76,7 @@
 INKError parseHTTPResponse(char *buffer, char **header, int *hdr_size, char **body, int *bdy_size);
 INKError readHTTPResponse(int sock, char *buffer, int bufsize, inku64 timeout);
 INKError sendHTTPRequest(int sock, char *request, inku64 timeout);
-int connectDirect(char *host, int port, inku64 timeout);
+int connectDirect(const char *host, int port, inku64 timeout);
 
 // used by NetworkUtilRemote.cc and NetworkUtilLocal.cc
 int socket_read_timeout(int fd, int sec, int usec);

Modified: incubator/trafficserver/traffic/trunk/proxy/mgmt2/api2/EventCallback.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/mgmt2/api2/EventCallback.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/mgmt2/api2/EventCallback.cc (original)
+++ incubator/trafficserver/traffic/trunk/proxy/mgmt2/api2/EventCallback.cc Tue Apr 27 19:12:22 2010
@@ -86,7 +86,7 @@ delete_event_callback(EventCallbackT * e
  * notes: None
  **********************************************************************/
 CallbackTable *
-create_callback_table(char *lock_name)
+create_callback_table(const char *lock_name)
 {
   CallbackTable *cb_table;
 

Modified: incubator/trafficserver/traffic/trunk/proxy/mgmt2/api2/EventCallback.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/mgmt2/api2/EventCallback.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/mgmt2/api2/EventCallback.h (original)
+++ incubator/trafficserver/traffic/trunk/proxy/mgmt2/api2/EventCallback.h Tue Apr 27 19:12:22 2010
@@ -67,7 +67,7 @@ extern "C"
 EventCallbackT *create_event_callback(INKEventSignalFunc func, void *data);
 void delete_event_callback(EventCallbackT * event_cb);
 
-CallbackTable *create_callback_table(char *lock_name);
+CallbackTable *create_callback_table(const char *lock_name);
 
 void delete_callback_table(CallbackTable * cb_table);
 



Mime
View raw message