trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bc...@apache.org
Subject svn commit: r938607 [1/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
Author: bcall
Date: Tue Apr 27 19:12:22 2010
New Revision: 938607

URL: http://svn.apache.org/viewvc?rev=938607&view=rev
Log:
TS-322 Remove the need to pass -Wno-char-subscripts and -Wno-write-strings
to gcc.
1. Changed the interfaces to accept const char* instead of char* and
made variables pointing to string literals const char*
2. Fix a couple places where we were freeing char* pointing to string
literals
3. Casting char to inku8 when using the variable for indexing into
arrays.

Updates to the patch from George Paul to make it portable to OSX,
FreeBSD, and OpenSolaris.

Modified:
    incubator/trafficserver/traffic/trunk/configure.ac
    incubator/trafficserver/traffic/trunk/iocore/cache/Cache.cc
    incubator/trafficserver/traffic/trunk/iocore/cache/CacheHosting.cc
    incubator/trafficserver/traffic/trunk/iocore/cache/I_Store.h
    incubator/trafficserver/traffic/trunk/iocore/cache/Store.cc
    incubator/trafficserver/traffic/trunk/iocore/cluster/ClusterConfig.cc
    incubator/trafficserver/traffic/trunk/iocore/cluster/P_ClusterInternal.h
    incubator/trafficserver/traffic/trunk/iocore/dns/DNS.cc
    incubator/trafficserver/traffic/trunk/iocore/dns/I_DNSProcessor.h
    incubator/trafficserver/traffic/trunk/iocore/dns/P_DNSProcessor.h
    incubator/trafficserver/traffic/trunk/iocore/dns/SplitDNS.cc
    incubator/trafficserver/traffic/trunk/iocore/eventsystem/I_SocketManager.h
    incubator/trafficserver/traffic/trunk/iocore/eventsystem/P_UnixSocketManager.h
    incubator/trafficserver/traffic/trunk/iocore/hostdb/HostDB.cc
    incubator/trafficserver/traffic/trunk/iocore/hostdb/MultiCache.cc
    incubator/trafficserver/traffic/trunk/iocore/hostdb/P_MultiCache.h
    incubator/trafficserver/traffic/trunk/iocore/net/I_NetConfig.h
    incubator/trafficserver/traffic/trunk/iocore/net/NetConfig.cc
    incubator/trafficserver/traffic/trunk/iocore/net/P_SSLCertLookup.h
    incubator/trafficserver/traffic/trunk/iocore/net/P_SSLConfig.h
    incubator/trafficserver/traffic/trunk/iocore/net/SSLCertLookup.cc
    incubator/trafficserver/traffic/trunk/libinktomi++/Diags.h
    incubator/trafficserver/traffic/trunk/libinktomi++/INK_MD5.h
    incubator/trafficserver/traffic/trunk/libinktomi++/I_Version.h
    incubator/trafficserver/traffic/trunk/libinktomi++/MatcherUtils.cc
    incubator/trafficserver/traffic/trunk/libinktomi++/MatcherUtils.h
    incubator/trafficserver/traffic/trunk/libinktomi++/ParseRules.h
    incubator/trafficserver/traffic/trunk/libinktomi++/Version.cc
    incubator/trafficserver/traffic/trunk/libinktomi++/ink_args.cc
    incubator/trafficserver/traffic/trunk/libinktomi++/ink_args.h
    incubator/trafficserver/traffic/trunk/libinktomi++/ink_base64.cc
    incubator/trafficserver/traffic/trunk/libinktomi++/ink_file.cc
    incubator/trafficserver/traffic/trunk/libinktomi++/ink_file.h
    incubator/trafficserver/traffic/trunk/libinktomi++/ink_hash_table.cc
    incubator/trafficserver/traffic/trunk/libinktomi++/ink_hash_table.h
    incubator/trafficserver/traffic/trunk/libinktomi++/ink_memory.cc
    incubator/trafficserver/traffic/trunk/libinktomi++/ink_memory.h
    incubator/trafficserver/traffic/trunk/libinktomi++/ink_sprintf.cc
    incubator/trafficserver/traffic/trunk/libinktomi++/ink_sprintf.h
    incubator/trafficserver/traffic/trunk/libinktomi++/ink_stack_trace.cc
    incubator/trafficserver/traffic/trunk/libinktomi++/ink_string.cc
    incubator/trafficserver/traffic/trunk/libinktomi++/ink_string.h
    incubator/trafficserver/traffic/trunk/libinktomi++/ink_time.cc
    incubator/trafficserver/traffic/trunk/libinktomi++/ink_time.h
    incubator/trafficserver/traffic/trunk/librecords/I_RecCore.h
    incubator/trafficserver/traffic/trunk/librecords/I_RecDefs.h
    incubator/trafficserver/traffic/trunk/librecords/I_RecProcess.h
    incubator/trafficserver/traffic/trunk/librecords/P_RecCore.h
    incubator/trafficserver/traffic/trunk/librecords/P_RecCore.i
    incubator/trafficserver/traffic/trunk/librecords/P_RecDefs.h
    incubator/trafficserver/traffic/trunk/librecords/P_RecMessage.h
    incubator/trafficserver/traffic/trunk/librecords/P_RecProcess.h
    incubator/trafficserver/traffic/trunk/librecords/P_RecTree.h
    incubator/trafficserver/traffic/trunk/librecords/P_RecUtils.h
    incubator/trafficserver/traffic/trunk/librecords/RecCore.cc
    incubator/trafficserver/traffic/trunk/librecords/RecMessage.cc
    incubator/trafficserver/traffic/trunk/librecords/RecProcess.cc
    incubator/trafficserver/traffic/trunk/librecords/RecTree.cc
    incubator/trafficserver/traffic/trunk/librecords/RecUtils.cc
    incubator/trafficserver/traffic/trunk/proxy/CacheInspectorAllow.cc
    incubator/trafficserver/traffic/trunk/proxy/ControlMatcher.cc
    incubator/trafficserver/traffic/trunk/proxy/DiagsConfig.cc
    incubator/trafficserver/traffic/trunk/proxy/EventName.cc
    incubator/trafficserver/traffic/trunk/proxy/ICPConfig.cc
    incubator/trafficserver/traffic/trunk/proxy/IPAllow.cc
    incubator/trafficserver/traffic/trunk/proxy/InkAPI.cc
    incubator/trafficserver/traffic/trunk/proxy/InkAPITest.cc
    incubator/trafficserver/traffic/trunk/proxy/Main.cc
    incubator/trafficserver/traffic/trunk/proxy/ParentSelection.cc
    incubator/trafficserver/traffic/trunk/proxy/ParentSelection.h
    incubator/trafficserver/traffic/trunk/proxy/Plugin.cc
    incubator/trafficserver/traffic/trunk/proxy/Show.h
    incubator/trafficserver/traffic/trunk/proxy/StatPages.cc
    incubator/trafficserver/traffic/trunk/proxy/StatPages.h
    incubator/trafficserver/traffic/trunk/proxy/StatSystem.cc
    incubator/trafficserver/traffic/trunk/proxy/StatSystem.h
    incubator/trafficserver/traffic/trunk/proxy/TestHook.cc
    incubator/trafficserver/traffic/trunk/proxy/Update.cc
    incubator/trafficserver/traffic/trunk/proxy/Update.h
    incubator/trafficserver/traffic/trunk/proxy/api/include/ts_private_frozen.h
    incubator/trafficserver/traffic/trunk/proxy/congest/Congestion.cc
    incubator/trafficserver/traffic/trunk/proxy/cust_log_fmt_cnvrt.cc
    incubator/trafficserver/traffic/trunk/proxy/hdrs/HdrHeap.cc
    incubator/trafficserver/traffic/trunk/proxy/hdrs/HdrTest.cc
    incubator/trafficserver/traffic/trunk/proxy/hdrs/HdrTest.h
    incubator/trafficserver/traffic/trunk/proxy/hdrs/HttpCompat.cc
    incubator/trafficserver/traffic/trunk/proxy/hdrs/HttpCompat.h
    incubator/trafficserver/traffic/trunk/proxy/hdrs/MIME.cc
    incubator/trafficserver/traffic/trunk/proxy/http2/HttpBodyFactory.cc
    incubator/trafficserver/traffic/trunk/proxy/http2/HttpBodyFactory.h
    incubator/trafficserver/traffic/trunk/proxy/http2/HttpConfig.cc
    incubator/trafficserver/traffic/trunk/proxy/http2/HttpMessageBody.cc
    incubator/trafficserver/traffic/trunk/proxy/http2/HttpMessageBody.h
    incubator/trafficserver/traffic/trunk/proxy/http2/HttpPages.cc
    incubator/trafficserver/traffic/trunk/proxy/http2/HttpPages.h
    incubator/trafficserver/traffic/trunk/proxy/http2/HttpSM.cc
    incubator/trafficserver/traffic/trunk/proxy/http2/HttpSM.h
    incubator/trafficserver/traffic/trunk/proxy/http2/HttpTransact.cc
    incubator/trafficserver/traffic/trunk/proxy/http2/HttpTransact.h
    incubator/trafficserver/traffic/trunk/proxy/http2/HttpTransactHeaders.cc
    incubator/trafficserver/traffic/trunk/proxy/http2/HttpTransactHeaders.h
    incubator/trafficserver/traffic/trunk/proxy/http2/remap/UrlRewrite.cc
    incubator/trafficserver/traffic/trunk/proxy/http2/remap/UrlRewrite.h
    incubator/trafficserver/traffic/trunk/proxy/logcat.cc
    incubator/trafficserver/traffic/trunk/proxy/logging/Log.cc
    incubator/trafficserver/traffic/trunk/proxy/logging/Log.h
    incubator/trafficserver/traffic/trunk/proxy/logging/LogAccess.cc
    incubator/trafficserver/traffic/trunk/proxy/logging/LogAccess.h
    incubator/trafficserver/traffic/trunk/proxy/logging/LogConfig.cc
    incubator/trafficserver/traffic/trunk/proxy/logging/LogConfig.h
    incubator/trafficserver/traffic/trunk/proxy/logging/LogField.cc
    incubator/trafficserver/traffic/trunk/proxy/logging/LogField.h
    incubator/trafficserver/traffic/trunk/proxy/logging/LogFile.cc
    incubator/trafficserver/traffic/trunk/proxy/logging/LogFile.h
    incubator/trafficserver/traffic/trunk/proxy/logging/LogFilter.cc
    incubator/trafficserver/traffic/trunk/proxy/logging/LogFilter.h
    incubator/trafficserver/traffic/trunk/proxy/logging/LogFormat.cc
    incubator/trafficserver/traffic/trunk/proxy/logging/LogFormat.h
    incubator/trafficserver/traffic/trunk/proxy/logging/LogHost.cc
    incubator/trafficserver/traffic/trunk/proxy/logging/LogObject.cc
    incubator/trafficserver/traffic/trunk/proxy/logging/LogObject.h
    incubator/trafficserver/traffic/trunk/proxy/logging/LogStandalone.cc
    incubator/trafficserver/traffic/trunk/proxy/logging/LogUtils.cc
    incubator/trafficserver/traffic/trunk/proxy/logging/LogUtils.h
    incubator/trafficserver/traffic/trunk/proxy/logstats.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/Alarms.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/Alarms.h
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/AutoConf.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/AutoConf.h
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/BaseRecords.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/BaseRecords.h
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/FileManager.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/FileManager.h
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/LMRecords.h
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/LocalManager.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/LocalManager.h
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/Main.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/Main.h
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/MgmtDefs.h
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/MultiFile.h
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/ProcessRecords.h
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/RecordsConfig.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/RecordsConfig.h
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/Rollback.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/StatAggregation.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/api2/CfgContextUtils.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/api2/CoreAPI.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/api2/CoreAPI.h
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/api2/CoreAPIShared.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/api2/CoreAPIShared.h
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/api2/EventCallback.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/api2/EventCallback.h
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/api2/INKMgmtAPI.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/api2/INKMgmtAPIStub.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/api2/MgmtPlugin.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/api2/include/INKMgmtAPI.h
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/api2/remote/CoreAPIRemote.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/api2/remote/NetworkUtilsRemote.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/api2/remote/NetworkUtilsRemote.h
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/cli/CLI.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/cli/CLI.h
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/cli/CLIeventHandler.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/cli/CLIeventHandler.h
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/cli2/CliDisplay.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/cli2/CliDisplay.h
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/cli2/CliMgmtUtils.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/cli2/CliMgmtUtils.h
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/cli2/ConfigCmd.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/cli2/ConfigCmd.h
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/cli2/ShowCmd.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/cli2/createArgument.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/cli2/createArgument.h
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/cli2/createCommand.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/cli2/createCommand.h
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/cli2/hashtable.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/cli2/hashtable.h
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/cluster/ClusterCom.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/cluster/ClusterCom.h
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/cop/TrafficCop.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/preparse/IPRange.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/preparse/IPRange.h
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/preparse/RemapReadConfig.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/preparse/StoreReadConfig.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/stats/StatType.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/stats/StatType.h
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/tools/ConfigAPI.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/tools/ConfigAPI.h
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/tools/NetConfig.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/tools/SysAPI.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/tools/SysAPI.h
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/utils/MgmtConverter.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/utils/MgmtConverter.h
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/utils/MgmtHashTable.h
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/utils/MgmtServerRPC.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/utils/MgmtServerRPC.h
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/utils/MgmtUtils.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/utils/MgmtUtils.h
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/utils/WebMgmtUtils.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/utils/WebMgmtUtils.h
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/MgmtAllow.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebConfigRender.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebConfigRender.h
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebHttp.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebHttpMessage.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebHttpMessage.h
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebHttpRender.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebHttpRender.h
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebHttpTree.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebHttpTree.h
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebIntrMain.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebOverview.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebOverview.h
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebReconfig.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/web2/WebUtils.cc
    incubator/trafficserver/traffic/trunk/rc/update_records.cc

Modified: incubator/trafficserver/traffic/trunk/configure.ac
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/configure.ac?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/configure.ac (original)
+++ incubator/trafficserver/traffic/trunk/configure.ac Tue Apr 27 19:12:22 2010
@@ -424,13 +424,13 @@ base_cc=`basename $CC`
 # These are shortcuts used in combination for the compiler options below
 case $host_os in
   linux*)
-    common_opt="-pipe -Wall -Werror -Wno-char-subscripts -Wno-write-strings"
+    common_opt="-pipe -Wall -Werror"
     debug_opt="-ggdb3 $common_opt"
     release_opt="-g $common_opt -O3 -feliminate-unused-debug-symbols -fno-strict-aliasing"
     cxx_opt="-Wno-invalid-offsetof"
     ;;
   darwin*)
-    common_opt="-pipe -Wall -Werror -Wno-char-subscripts -Wno-write-strings"
+    common_opt="-pipe -Wall -Werror"
     debug_opt="-ggdb3 $common_opt"
     release_opt="-g $common_opt -O3 -feliminate-unused-debug-symbols -fno-strict-aliasing"
     cxx_opt="-Wno-invalid-offsetof"
@@ -438,7 +438,7 @@ case $host_os in
     LDFLAGS="${LDFLAGS} -L/opt/local/lib"
     ;;
   freebsd*)
-    common_opt="-pipe -Wall -Werror -Wno-char-subscripts -Wno-write-strings"
+    common_opt="-pipe -Wall -Werror"
     debug_opt="-ggdb3 $common_opt"
     release_opt="-g $common_opt -O3 -feliminate-unused-debug-symbols -fno-strict-aliasing"
     cxx_opt="-Wno-invalid-offsetof"
@@ -455,7 +455,7 @@ case $host_os in
        [posix thread semantics]
       )
     else # gcc
-      common_opt="-pipe -Wall -Werror -Wno-char-subscripts -Wno-write-strings"
+      common_opt="-pipe -Wall -Werror"
       debug_opt="-ggdb3 $common_opt"
       release_opt="-g $common_opt -O3 -feliminate-unused-debug-symbols -fno-strict-aliasing"
       cxx_opt="-Wno-invalid-offsetof"
@@ -463,7 +463,7 @@ case $host_os in
     LDFLAGS="${LDFLAGS} -L/lib -L/usr/local/lib"
     ;;
   *)         
-    common_opt="-pipe -Wall -Werror -Wno-char-subscripts -Wno-write-strings"
+    common_opt="-pipe -Wall -Werror"
     debug_opt="-ggdb3 $common_opt"
     release_opt="-g $common_opt -O3 -feliminate-unused-debug-symbols -fno-strict-aliasing"
     cxx_opt="-Wno-invalid-offsetof"
@@ -687,6 +687,7 @@ if test "x${with_libdb}" = "xyes"; then
 fi
 
 AC_CHECK_FUNCS([clock_gettime kqueue epoll_ctl posix_memalign lrand48_r srand48_r port_create])
+AC_CHECK_FUNCS([strndup])
 
 AS_IF([test "x$enable_eventfd" = "xyes"],
   [AC_CHECK_FUNCS([eventfd])]

Modified: incubator/trafficserver/traffic/trunk/iocore/cache/Cache.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/iocore/cache/Cache.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/iocore/cache/Cache.cc (original)
+++ incubator/trafficserver/traffic/trunk/iocore/cache/Cache.cc Tue Apr 27 19:12:22 2010
@@ -2704,7 +2704,7 @@ ink_cache_init(ModuleVersion v)
   IOCORE_RegisterStatUpdateFunc("proxy.process.cache.bytes_used",
                                 cache_rsb, (int) cache_bytes_used_stat, cache_stats_bytes_used_cb, NULL);
 
-  char *err = NULL;
+  const char *err = NULL;
   if ((err = theCacheStore.read_config())) {
     printf("%s  failed\n", err);
     exit(1);

Modified: incubator/trafficserver/traffic/trunk/iocore/cache/CacheHosting.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/iocore/cache/CacheHosting.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/iocore/cache/CacheHosting.cc (original)
+++ incubator/trafficserver/traffic/trunk/iocore/cache/CacheHosting.cc Tue Apr 27 19:12:22 2010
@@ -280,7 +280,7 @@ CacheHostTable::BuildTableFromString(cha
   int second_pass = 0;
   int numEntries = 0;
   char errBuf[1024];
-  char *errPtr = NULL;
+  const char *errPtr = NULL;
 
   // type counts
   int hostDomain = 0;
@@ -687,7 +687,7 @@ ConfigPartitions::BuildListFromString(ch
   int scheme = CACHE_NONE_TYPE;
   int size = 0;
   int in_percent = 0;
-  char *matcher_name = "[CachePartition]";
+  const char *matcher_name = "[CachePartition]";
 
   memset(partition_seen, 0, sizeof(partition_seen));
   num_partitions = 0;
@@ -779,7 +779,7 @@ ConfigPartitions::BuildListFromString(ch
         // XXX should this be < 0 instead of < 1
         if (partition_number<1 || partition_number> 255 || partition_seen[partition_number]) {
 
-          char *err;
+          const char *err;
 
           // XXX should this be < 0 instead of < 1
           if (partition_number<1 || partition_number> 255) {

Modified: incubator/trafficserver/traffic/trunk/iocore/cache/I_Store.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/iocore/cache/I_Store.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/iocore/cache/I_Store.h (original)
+++ incubator/trafficserver/traffic/trunk/iocore/cache/I_Store.h Tue Apr 27 19:12:22 2010
@@ -102,7 +102,7 @@ public:
     return offset + blocks;
   }
 
-  char *init(char *n, ink64 size);
+  const char *init(char *n, ink64 size);
 
   int path(char *filename,      // for non-file, the filename in the director
            ink64 * offset,      // for file, start offset (unsupported)
@@ -192,7 +192,7 @@ struct Store
   // if fd >= 0 then on failure it returns an error string
   //            otherwise on failure it returns (char *)-1
   //
-  char *read_config(int fd = -1);
+  const char *read_config(int fd = -1);
   int write_config_data(int fd);
 };
 
@@ -207,7 +207,7 @@ int initialize_store();
 
 struct storageConfigFile
 {
-  char *parseFile(int fd)
+  const char *parseFile(int fd)
   {
     Store tStore;
       return tStore.read_config(fd);

Modified: incubator/trafficserver/traffic/trunk/iocore/cache/Store.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/iocore/cache/Store.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/iocore/cache/Store.cc (original)
+++ incubator/trafficserver/traffic/trunk/iocore/cache/Store.cc Tue Apr 27 19:12:22 2010
@@ -24,7 +24,7 @@
 #include "inktomi++.h"
 #include "P_Cache.h"
 
-char *STORAGE_CONFIG_HEADER = "# 									\n\
+const char *STORAGE_CONFIG_HEADER = "# 									\n\
 # Storage Configuration file                                            \n\
 #                                                                       \n\
 #                                                                       \n\
@@ -299,12 +299,12 @@ Lagain:
   return found ? 0 : -1;
 }
 
-char *
+const char *
 Store::read_config(int fd)
 {
   int n_dsstore = 0;
   int ln = 0;
-  char *err = NULL;
+  const char *err = NULL;
   Span *sd = NULL, *cur = NULL;
   Span *ns;
 
@@ -446,11 +446,11 @@ Store::write_config_data(int fd)
 #endif
 #include <string.h>
 
-char *
+const char *
 Span::init(char *an, ink64 size)
 {
   int devnum = 0;
-  char *err = NULL;
+  const char *err = NULL;
   int ret = 0;
 
   //
@@ -468,7 +468,7 @@ Span::init(char *an, ink64 size)
     if (*real_n != '/') {
       char *rs = strrchr(an, '/');
       int l = (rs - an) + 1;
-      char *ann = an;
+      const char *ann = an;
       if (!rs) {
         ann = "./";
         l = 2;
@@ -622,7 +622,7 @@ Lfail:
 #include <linux/fs.h>           /* for BLKGETSIZE.  sys/mount.h is another candidate */
 
 
-char *
+const char *
 Span::init(char *filename, ink64 size)
 {
   int devnum = 0, fd, arg;

Modified: incubator/trafficserver/traffic/trunk/iocore/cluster/ClusterConfig.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/iocore/cluster/ClusterConfig.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/iocore/cluster/ClusterConfig.cc (original)
+++ incubator/trafficserver/traffic/trunk/iocore/cluster/ClusterConfig.cc Tue Apr 27 19:12:22 2010
@@ -205,7 +205,7 @@ machine_config_change(const char *name, 
 }
 
 void
-do_machine_config_change(void *d, char *s)
+do_machine_config_change(void *d, const char *s)
 {
   char cluster_config_filename[PATH_NAME_MAX] = "";
   IOCORE_ReadConfigString(cluster_config_filename, s, sizeof(cluster_config_filename) - 1);

Modified: incubator/trafficserver/traffic/trunk/iocore/cluster/P_ClusterInternal.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/iocore/cluster/P_ClusterInternal.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/iocore/cluster/P_ClusterInternal.h (original)
+++ incubator/trafficserver/traffic/trunk/iocore/cluster/P_ClusterInternal.h Tue Apr 27 19:12:22 2010
@@ -519,7 +519,7 @@ extern ClassAllocator<ByteBankDescriptor
 extern int cluster_port;
 // extern void * machine_config_change(void *, void *);
 int machine_config_change(const char *, RecDataT, RecData, void *);
-extern void do_machine_config_change(void *, char *);
+extern void do_machine_config_change(void *, const char *);
 
 #ifdef NON_MODULAR
 // Cluster API support functions 

Modified: incubator/trafficserver/traffic/trunk/iocore/dns/DNS.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/iocore/dns/DNS.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/iocore/dns/DNS.cc (original)
+++ incubator/trafficserver/traffic/trunk/iocore/dns/DNS.cc Tue Apr 27 19:12:22 2010
@@ -243,7 +243,7 @@ DNSProcessor::DNSProcessor()
 }
 
 void
-DNSEntry::init(char *x, int len, int qtype_arg,
+DNSEntry::init(const char *x, int len, int qtype_arg,
                Continuation * acont, HostEnt ** wait, DNSHandler * adnsH, int dns_lookup_timeout)
 {
   (void) adnsH;
@@ -990,7 +990,7 @@ DNSEntry::mainEvent(int event, Event * e
 
 
 Action *
-DNSProcessor::getby(char *x, int len, int type,
+DNSProcessor::getby(const char *x, int len, int type,
                     Continuation * cont, HostEnt ** wait, DNSHandler * adnsH, bool proxy, bool proxy_cache, int timeout)
 {
   Debug("dns", "received query %s type = %d, timeout = %d", x, type, timeout);
@@ -1583,7 +1583,7 @@ typedef int (DNSRegressionContinuation::
 struct DNSRegressionContinuation:Continuation
 {
   int hosts;
-  char **hostnames;
+  const char **hostnames;
   int type;
   int *status;
   int found;
@@ -1618,14 +1618,14 @@ struct DNSRegressionContinuation:Continu
     }
   }
 
-  DNSRegressionContinuation(int ahosts, int atofind, char **ahostnames, RegressionTest * t, int atype, int *astatus)
+  DNSRegressionContinuation(int ahosts, int atofind, const char **ahostnames, RegressionTest * t, int atype, int *astatus)
 :  Continuation(new_ProxyMutex()), hosts(ahosts), hostnames(ahostnames), type(atype),
     status(astatus), found(0), tofind(atofind), i(0), test(t) {
     SET_HANDLER((DNSRegContHandler) & DNSRegressionContinuation::mainEvent);
   }
 };
 
-static char *dns_test_hosts[] = {
+static const char *dns_test_hosts[] = {
   "www.apple.com",
   "www.ibm.com",
   "www.microsoft.com",

Modified: incubator/trafficserver/traffic/trunk/iocore/dns/I_DNSProcessor.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/iocore/dns/I_DNSProcessor.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/iocore/dns/I_DNSProcessor.h (original)
+++ incubator/trafficserver/traffic/trunk/iocore/dns/I_DNSProcessor.h Tue Apr 27 19:12:22 2010
@@ -83,18 +83,18 @@ struct DNSProcessor:Processor
   // NOTE: the HostEnt * block is freed when the function returns
   //
 
-  Action *gethostbyname(Continuation * cont, char *name, DNSHandler * adnsH = 0, bool dns_proxy = 0, int timeout = 0);
-  Action *getSRVbyname(Continuation * cont, char *name, DNSHandler * adnsH = 0, bool dns_proxy = 0, int timeout = 0);
-  Action *gethostbyname(Continuation * cont, char *name, int len, int timeout = 0);
+  Action *gethostbyname(Continuation * cont, const char *name, DNSHandler * adnsH = 0, bool dns_proxy = 0, int timeout = 0);
+  Action *getSRVbyname(Continuation * cont, const char *name, DNSHandler * adnsH = 0, bool dns_proxy = 0, int timeout = 0);
+  Action *gethostbyname(Continuation * cont, const char *name, int len, int timeout = 0);
   Action *gethostbyaddr(Continuation * cont, unsigned int ip, int timeout = 0);
   Action *getproxyresult(Continuation * cont, char *request, DNSHandler * adnsH = 0);
 
   // Blocking DNS lookup, user must free the return HostEnt *
   // NOTE: this HostEnt is big, please free these ASAP
   //
-  HostEnt *gethostbyname(char *name);
+  HostEnt *gethostbyname(const char *name);
   HostEnt *gethostbyaddr(unsigned int addr);
-  HostEnt *getSRVbyname(char *name);
+  HostEnt *getSRVbyname(const char *name);
 
   /** Free the returned HostEnt (only for Blocking versions). */
   void free_hostent(HostEnt * ent);
@@ -117,7 +117,7 @@ struct DNSProcessor:Processor
   EThread *thread;
   DNSHandler *handler;
   __ink_res_state l_res;
-  Action *getby(char *x, int len, int type, Continuation * cont,
+  Action *getby(const char *x, int len, int type, Continuation * cont,
                 HostEnt ** wait, DNSHandler * adnsH = NULL, bool proxy = false, bool proxy_cache = false, int timeout =
                 0);
   void dns_init();
@@ -135,7 +135,7 @@ extern DNSProcessor dnsProcessor;
 //
 
 inline HostEnt *
-DNSProcessor::getSRVbyname(char *name)
+DNSProcessor::getSRVbyname(const char *name)
 {
   HostEnt *ent = NULL;
 
@@ -145,21 +145,21 @@ DNSProcessor::getSRVbyname(char *name)
 
 
 inline Action *
-DNSProcessor::getSRVbyname(Continuation * cont, char *name, DNSHandler * adnsH, bool proxy, int timeout)
+DNSProcessor::getSRVbyname(Continuation * cont, const char *name, DNSHandler * adnsH, bool proxy, int timeout)
 {
   return getby(name, 0, T_SRV, cont, 0, adnsH, 0, proxy, timeout);
 }
 
 
 inline Action *
-DNSProcessor::gethostbyname(Continuation * cont, char *name, DNSHandler * adnsH, bool proxy, int timeout)
+DNSProcessor::gethostbyname(Continuation * cont, const char *name, DNSHandler * adnsH, bool proxy, int timeout)
 {
   return getby(name, 0, T_A, cont, 0, adnsH, 0, proxy, timeout);
 }
 
 
 inline Action *
-DNSProcessor::gethostbyname(Continuation * cont, char *name, int len, int timeout)
+DNSProcessor::gethostbyname(Continuation * cont, const char *name, int len, int timeout)
 {
   return getby(name, len, T_A, cont, 0, NULL, 0, false, timeout);
 }
@@ -173,7 +173,7 @@ DNSProcessor::gethostbyaddr(Continuation
 
 
 inline HostEnt *
-DNSProcessor::gethostbyname(char *name)
+DNSProcessor::gethostbyname(const char *name)
 {
   HostEnt *ent = NULL;
   getby(name, 0, T_A, NULL, &ent);

Modified: incubator/trafficserver/traffic/trunk/iocore/dns/P_DNSProcessor.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/iocore/dns/P_DNSProcessor.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/iocore/dns/P_DNSProcessor.h (original)
+++ incubator/trafficserver/traffic/trunk/iocore/dns/P_DNSProcessor.h Tue Apr 27 19:12:22 2010
@@ -191,7 +191,7 @@ struct DNSEntry:Continuation
   int post(DNSHandler * h, HostEnt * ent, bool freeable);
   int postEvent(int event, Event * e);
 
-  void init(char *x, int len, int qtype_arg, Continuation * acont, HostEnt ** wait, DNSHandler * adnsH, int timeout);
+  void init(const char *x, int len, int qtype_arg, Continuation * acont, HostEnt ** wait, DNSHandler * adnsH, int timeout);
 
     DNSEntry()
   : Continuation(NULL),

Modified: incubator/trafficserver/traffic/trunk/iocore/dns/SplitDNS.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/iocore/dns/SplitDNS.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/iocore/dns/SplitDNS.cc (original)
+++ incubator/trafficserver/traffic/trunk/iocore/dns/SplitDNS.cc Tue Apr 27 19:12:22 2010
@@ -71,9 +71,9 @@ static ClassAllocator<DNSRequestData> DN
 /* --------------------------------------------------------------
    config var names
    -------------------------------------------------------------- */
-static char *sdns_file_var = "proxy.config.dns.splitdns.filename";
-static char *sdns_enable_var = "proxy.config.dns.splitDNS.enabled";
-static char *sdns_def_domain = "proxy.config.dns.splitdns.def_domain";
+static const char *sdns_file_var = "proxy.config.dns.splitdns.filename";
+static const char *sdns_enable_var = "proxy.config.dns.splitDNS.enabled";
+static const char *sdns_def_domain = "proxy.config.dns.splitdns.def_domain";
 
 
 /* --------------------------------------------------------------

Modified: incubator/trafficserver/traffic/trunk/iocore/eventsystem/I_SocketManager.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/iocore/eventsystem/I_SocketManager.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/iocore/eventsystem/I_SocketManager.h (original)
+++ incubator/trafficserver/traffic/trunk/iocore/eventsystem/I_SocketManager.h Tue Apr 27 19:12:22 2010
@@ -52,7 +52,7 @@ struct SocketManager
   SOCKET mc_socket(int domain = AF_INET, int type = SOCK_DGRAM, int protocol = 0, bool bNonBlocking = true);
 
   // result is the fd or -errno
-  int open(char *path, int oflag = O_RDWR | O_NDELAY | O_CREAT, mode_t mode = DEFAULT_OPEN_MODE);
+  int open(const char *path, int oflag = O_RDWR | O_NDELAY | O_CREAT, mode_t mode = DEFAULT_OPEN_MODE);
 
   // result is the number of bytes or -errno
   ink64 read(int fd, void *buf, int len, void *pOLP = NULL);

Modified: incubator/trafficserver/traffic/trunk/iocore/eventsystem/P_UnixSocketManager.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/iocore/eventsystem/P_UnixSocketManager.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/iocore/eventsystem/P_UnixSocketManager.h (original)
+++ incubator/trafficserver/traffic/trunk/iocore/eventsystem/P_UnixSocketManager.h Tue Apr 27 19:12:22 2010
@@ -74,7 +74,7 @@ SocketManager::accept(int s, struct sock
 }
 
 TS_INLINE int
-SocketManager::open(char *path, int oflag, mode_t mode)
+SocketManager::open(const char *path, int oflag, mode_t mode)
 {
   int s;
   do {

Modified: incubator/trafficserver/traffic/trunk/iocore/hostdb/HostDB.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/iocore/hostdb/HostDB.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/iocore/hostdb/HostDB.cc (original)
+++ incubator/trafficserver/traffic/trunk/iocore/hostdb/HostDB.cc Tue Apr 27 19:12:22 2010
@@ -491,7 +491,7 @@ make_md5(INK_MD5 & md5, char *hostname, 
 static bool
 reply_to_cont(Continuation * cont, HostDBInfo * ar)
 {
-  char *reason = "none";
+  const char *reason = "none";
   HostDBInfo *r = ar;
 
   if (r == NULL) {

Modified: incubator/trafficserver/traffic/trunk/iocore/hostdb/MultiCache.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/iocore/hostdb/MultiCache.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/iocore/hostdb/MultiCache.cc (original)
+++ incubator/trafficserver/traffic/trunk/iocore/hostdb/MultiCache.cc Tue Apr 27 19:12:22 2010
@@ -540,7 +540,7 @@ MultiCacheBase::clear_but_heap()
 }
 
 int
-MultiCacheBase::read_config(char *config_filename, Store & s, char *fn, int *pi, int *pbuck)
+MultiCacheBase::read_config(const char *config_filename, Store & s, char *fn, int *pi, int *pbuck)
 {
   int scratch;
   char p[PATH_NAME_MAX + 1], buf[256];
@@ -578,7 +578,7 @@ MultiCacheBase::read_config(char *config
 }
 
 int
-MultiCacheBase::write_config(char *config_filename, int nominal_size, int abuckets)
+MultiCacheBase::write_config(const char *config_filename, int nominal_size, int abuckets)
 {
   char p[PATH_NAME_MAX], buf[256];
   int fd, retcode = -1;
@@ -598,11 +598,11 @@ MultiCacheBase::write_config(char *confi
 }
 
 int
-MultiCacheBase::open(Store * s, char *config_filename, char *db_filename, int db_size,
+MultiCacheBase::open(Store * s, const char *config_filename, char *db_filename, int db_size,
                      bool reconfigure, bool fix, bool silent)
 {
   int ret = 0;
-  char *err = NULL;
+  const char *err = NULL;
   char *serr = NULL;
   char t_db_filename[PATH_NAME_MAX];
   int t_db_size = 0;
@@ -948,7 +948,7 @@ MultiCacheBase::rebuild(MultiCacheBase &
 }
 
 int
-MultiCacheBase::check(char *config_filename, bool fix)
+MultiCacheBase::check(const char *config_filename, bool fix)
 {
   //  rebuild
   Store tStore;

Modified: incubator/trafficserver/traffic/trunk/iocore/hostdb/P_MultiCache.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/iocore/hostdb/P_MultiCache.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/iocore/hostdb/P_MultiCache.h (original)
+++ incubator/trafficserver/traffic/trunk/iocore/hostdb/P_MultiCache.h Tue Apr 27 19:12:22 2010
@@ -277,12 +277,12 @@ struct MultiCacheBase:MultiCacheHeader
     return last_bucket_of_partition(p) - first_bucket_of_partition(p) + 1;
   }
 
-  int open(Store * store, char *config_filename,
+  int open(Store * store, const char *config_filename,
            char *db_filename = NULL, int db_size = -1, bool reconfigure = false, bool fix = false, bool silent = false);
 
   // 1 for success, 0 for no config file, -1 for failure
-  int read_config(char *config_filename, Store & store, char *fn = NULL, int *pi = NULL, int *pbuckets = NULL);
-  int write_config(char *config_filename, int nominal_size, int buckets);
+  int read_config(const char *config_filename, Store & store, char *fn = NULL, int *pi = NULL, int *pbuckets = NULL);
+  int write_config(const char *config_filename, int nominal_size, int buckets);
   int initialize(Store * store, char *filename, int elements,
                  int buckets = 0, int levels = 2,
                  int level0_elements_per_bucket = 4,
@@ -334,7 +334,7 @@ struct MultiCacheBase:MultiCacheHeader
   // ** cannot be called on a running system **
   //  assumes that the configuration is correct
   //
-  int check(char *config_filename, bool fix = false);
+  int check(const char *config_filename, bool fix = false);
 
   ProxyMutex *lock_for_bucket(int bucket)
   {

Modified: incubator/trafficserver/traffic/trunk/iocore/net/I_NetConfig.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/iocore/net/I_NetConfig.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/iocore/net/I_NetConfig.h (original)
+++ incubator/trafficserver/traffic/trunk/iocore/net/I_NetConfig.h Tue Apr 27 19:12:22 2010
@@ -45,19 +45,19 @@ extern int net_config_ssl_mode;
 extern int net_config_sslAccelerator;
 extern int net_config_ssl_accept_port_number;
 extern int net_config_clientCertLevel;
-extern char *net_config_atallaAccelLibPath;
-extern char *net_config_ncipherAccelLibPath;
-extern char *net_config_cswiftAccelLibPath;
-extern char *net_config_serverCertFilename;
-extern char *net_config_serverCertRelativePath;
-extern char *net_config_multicert_config_file;
+extern const char *net_config_atallaAccelLibPath;
+extern const char *net_config_ncipherAccelLibPath;
+extern const char *net_config_cswiftAccelLibPath;
+extern const char *net_config_serverCertFilename;
+extern const char *net_config_serverCertRelativePath;
+extern const char *net_config_multicert_config_file;
 extern char *net_config_ssl_server_private_key_filename;
 extern char *net_config_ssl_server_private_key_path;
 extern char *net_config_CACertFilename;
 extern char *net_config_CACertRelativePath;
 extern int net_config_clientVerify;
 extern char *net_config_ssl_client_cert_filename;
-extern char *net_config_ssl_client_cert_path;
+extern const char *net_config_ssl_client_cert_path;
 extern char *net_config_ssl_client_private_key_filename;
 extern char *net_config_ssl_client_private_key_path;
 extern char *net_config_clientCACertFilename;

Modified: incubator/trafficserver/traffic/trunk/iocore/net/NetConfig.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/iocore/net/NetConfig.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/iocore/net/NetConfig.cc (original)
+++ incubator/trafficserver/traffic/trunk/iocore/net/NetConfig.cc Tue Apr 27 19:12:22 2010
@@ -47,9 +47,9 @@ int net_config_sslAccelerator = 0;
 //    # the following accelerator library paths only need
 //    # to be changed if the default path was not used
 //    # while installing the accelerator card.
-char *net_config_atallaAccelLibPath = "/opt/atalla/lib";
-char *net_config_ncipherAccelLibPath = "/opt/nfast/toolkits/hwcrhk";
-char *net_config_cswiftAccelLibPath = "/usr/lib";
+const char *net_config_atallaAccelLibPath = "/opt/atalla/lib";
+const char *net_config_ncipherAccelLibPath = "/opt/nfast/toolkits/hwcrhk";
+const char *net_config_cswiftAccelLibPath = "/usr/lib";
 
 
 int net_config_ssl_accept_port_number = 8443;
@@ -63,11 +63,11 @@ int net_config_clientCertLevel = 0;
 //    # Server cert filename is the name of the cert file
 //    # for a single cert system and the default cert name
 //    # for a multiple cert system.
-char *net_config_serverCertFilename = "server.pem";
+const char *net_config_serverCertFilename = "server.pem";
 
 //    # This is the path that will be used for both single and
 //    # multi cert systems.
-char *net_config_serverCertRelativePath = "etc/trafficserver";
+const char *net_config_serverCertRelativePath = "etc/trafficserver";
 
 //    # Fill in private key file and path only if the server's
 //    # private key is not contained in the server certificate file.
@@ -89,7 +89,7 @@ char *net_config_CACertRelativePath = NU
 
 int net_config_clientVerify = 0;
 char *net_config_ssl_client_cert_filename = NULL;
-char *net_config_ssl_client_cert_path = "etc/trafficserver";
+const char *net_config_ssl_client_cert_path = "etc/trafficserver";
 
 //    # Fill in private key file and path only if the client's
 //    # private key is not contained in the client certificate file.
@@ -103,4 +103,4 @@ char *net_config_clientCACertFilename = 
 char *net_config_clientCACertRelativePath = NULL;
 
 
-char *net_config_multicert_config_file = "ssl_multicert.config";
+const char *net_config_multicert_config_file = "ssl_multicert.config";

Modified: incubator/trafficserver/traffic/trunk/iocore/net/P_SSLCertLookup.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/iocore/net/P_SSLCertLookup.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/iocore/net/P_SSLCertLookup.h (original)
+++ incubator/trafficserver/traffic/trunk/iocore/net/P_SSLCertLookup.h Tue Apr 27 19:12:22 2010
@@ -31,7 +31,7 @@
 class SSLCertLookup
 {
   bool buildTable();
-  char *extractIPAndCert(matcher_line * line_info, char **addr, char **cert, char **priKey);
+  const char *extractIPAndCert(matcher_line * line_info, char **addr, char **cert, char **priKey);
   int addInfoToHash(char *strAddr, char *cert, char *serverPrivateKey);
 
   InkHashTable *SSLCertLookupHashTable;

Modified: incubator/trafficserver/traffic/trunk/iocore/net/P_SSLConfig.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/iocore/net/P_SSLConfig.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/iocore/net/P_SSLConfig.h (original)
+++ incubator/trafficserver/traffic/trunk/iocore/net/P_SSLConfig.h Tue Apr 27 19:12:22 2010
@@ -175,7 +175,7 @@ extern SslConfig sslTerminationConfig;
 #include "Diags.h"
 
 TS_INLINE void
-DebugBufferPrint(char *tag, char *buff, int blen, char *message = NULL)
+DebugBufferPrint(const char *tag, char *buff, int blen, const char *message = NULL)
 {
   (void) tag;
   (void) buff;

Modified: incubator/trafficserver/traffic/trunk/iocore/net/SSLCertLookup.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/iocore/net/SSLCertLookup.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/iocore/net/SSLCertLookup.cc (original)
+++ incubator/trafficserver/traffic/trunk/iocore/net/SSLCertLookup.cc Tue Apr 27 19:12:22 2010
@@ -58,7 +58,7 @@ SSLCertLookup::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;
@@ -144,7 +144,7 @@ SSLCertLookup::buildTable()
   return ret;
 }
 
-char *
+const char *
 SSLCertLookup::extractIPAndCert(matcher_line * line_info, char **addr, char **cert, char **priKey)
 {
 //  ip_addr_t testAddr;

Modified: incubator/trafficserver/traffic/trunk/libinktomi++/Diags.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/libinktomi%2B%2B/Diags.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/libinktomi++/Diags.h (original)
+++ incubator/trafficserver/traffic/trunk/libinktomi++/Diags.h Tue Apr 27 19:12:22 2010
@@ -162,7 +162,7 @@ public:
   volatile DiagsConfigState config;
   int show_location;
   DiagsCleanupFunc cleanup_func;
-  char *prefix_str;
+  const char *prefix_str;
 
   ///////////////////////////
   // conditional debugging //

Modified: incubator/trafficserver/traffic/trunk/libinktomi++/INK_MD5.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/libinktomi%2B%2B/INK_MD5.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/libinktomi++/INK_MD5.h (original)
+++ incubator/trafficserver/traffic/trunk/libinktomi++/INK_MD5.h Tue Apr 27 19:12:22 2010
@@ -88,7 +88,7 @@ struct INK_MD5
     ink_code_md5(buffer, len, md5);
     *this = md5;
   }
-  void encodeBuffer(char *buffer, int len)
+  void encodeBuffer(const char *buffer, int len)
   {
     encodeBuffer((unsigned char *) buffer, len);
   }

Modified: incubator/trafficserver/traffic/trunk/libinktomi++/I_Version.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/libinktomi%2B%2B/I_Version.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/libinktomi++/I_Version.h (original)
+++ incubator/trafficserver/traffic/trunk/libinktomi++/I_Version.h Tue Apr 27 19:12:22 2010
@@ -92,9 +92,9 @@ public:
   char FullVersionInfoStr[256];
 
   AppVersionInfo();
-  void setup(char *pkg_name, char *app_name, char *app_version, 
-             char *build_date, char *build_time, char *build_machine, 
-             char *build_person, char *build_cflags);
+  void setup(const char *pkg_name, const char *app_name, const char *app_version,
+             const char *build_date, const char *build_time, const char *build_machine,
+             const char *build_person, const char *build_cflags);
 };
 
 #endif /*_Version_h*/

Modified: incubator/trafficserver/traffic/trunk/libinktomi++/MatcherUtils.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/libinktomi%2B%2B/MatcherUtils.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/libinktomi++/MatcherUtils.cc (original)
+++ incubator/trafficserver/traffic/trunk/libinktomi++/MatcherUtils.cc Tue Apr 27 19:12:22 2010
@@ -143,7 +143,7 @@ unescapifyStr(char *buffer)
 //                         ip_addr_t* addr2)
 //
 //   Attempts to extract either an Ip Address or an IP Range
-//     fron match_str.  The range should be two addresses
+//     from match_str.  The range should be two addresses
 //     separated by a hyphen and no spaces
 //
 //   If the extraction is successful, sets addr1 and addr2
@@ -153,8 +153,8 @@ unescapifyStr(char *buffer)
 //   If the extraction fails, returns a static string
 //     that describes the reason for the error. 
 //
-char *
-ExtractIpRange(char *match_str, ip_addr_t * addr1, ip_addr_t * addr2)
+const char *
+ExtractIpRange(char *match_str, ip_addr_t *addr1, ip_addr_t *addr2)
 {
   Tokenizer rangeTok("-/");
   bool mask = false;
@@ -259,7 +259,7 @@ tokLine(char *buf, char **last)
   return NULL;
 }
 
-char *matcher_type_str[] = {
+const char *matcher_type_str[] = {
   "invalid",
   "host",
   "domain",
@@ -284,7 +284,7 @@ char *matcher_type_str[] = {
 //   Returns NULL on success and a static
 //    error string on failure
 //
-char *
+const char *
 processDurationString(char *str, int *seconds)
 {
   char *s = str;
@@ -391,8 +391,8 @@ const matcher_tags socks_server_tags = {
 //   If successful, NULL is returned.  If unsuccessful,
 //     a static error string is returned
 //
-char *
-parseConfigLine(char *line, matcher_line * p_line, const matcher_tags * tags)
+const char *
+parseConfigLine(char *line, matcher_line *p_line, const matcher_tags * tags)
 {
 
   enum pState

Modified: incubator/trafficserver/traffic/trunk/libinktomi++/MatcherUtils.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/libinktomi%2B%2B/MatcherUtils.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/libinktomi++/MatcherUtils.h (original)
+++ incubator/trafficserver/traffic/trunk/libinktomi++/MatcherUtils.h Tue Apr 27 19:12:22 2010
@@ -39,17 +39,17 @@ char *readIntoBuffer(char *file_path, co
 void unescapifyStr(char *buffer);
 
 typedef unsigned long ip_addr_t;
-char *ExtractIpRange(char *match_str, ip_addr_t * addr1, ip_addr_t * addr2);
+const char *ExtractIpRange(char *match_str, ip_addr_t * addr1, ip_addr_t * addr2);
 char *tokLine(char *buf, char **last);
 
-char *processDurationString(char *str, int *seconds);
+const char *processDurationString(char *str, int *seconds);
 
 // The first class types we support matching on
 enum matcher_type
 { MATCH_NONE, MATCH_HOST, MATCH_DOMAIN,
   MATCH_IP, MATCH_REGEX, MATCH_HOST_REGEX
 };
-extern char *matcher_type_str[];
+extern const char *matcher_type_str[];
 
 // A parsed config file line
 const int MATCHER_MAX_TOKENS = 40;
@@ -78,7 +78,7 @@ extern const matcher_tags http_dest_tags
 extern const matcher_tags ip_allow_tags;
 extern const matcher_tags socks_server_tags;
 
-char *parseConfigLine(char *line, matcher_line * p_line, const matcher_tags * tags);
+const char *parseConfigLine(char *line, matcher_line * p_line, const matcher_tags * tags);
 
 // inline void LowerCaseStr(char* str)
 //

Modified: incubator/trafficserver/traffic/trunk/libinktomi++/ParseRules.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/libinktomi%2B%2B/ParseRules.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/libinktomi++/ParseRules.h (original)
+++ incubator/trafficserver/traffic/trunk/libinktomi++/ParseRules.h Tue Apr 27 19:12:22 2010
@@ -490,7 +490,7 @@ ParseRules::is_pchar(const char *seq)
 {
 #ifndef COMPILE_PARSE_RULES
   if (*seq != '%')
-    return (parseRulesCType[*seq] & is_pchar_BIT);
+    return (parseRulesCType[(inku8)*seq] & is_pchar_BIT);
   else
     return is_hex(seq[1]) && is_hex(seq[2]);
 #else

Modified: incubator/trafficserver/traffic/trunk/libinktomi++/Version.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/libinktomi%2B%2B/Version.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/libinktomi++/Version.cc (original)
+++ incubator/trafficserver/traffic/trunk/libinktomi++/Version.cc Tue Apr 27 19:12:22 2010
@@ -43,9 +43,9 @@ AppVersionInfo::AppVersionInfo()
 
 
 void
-AppVersionInfo::setup(char *pkg_name, char *app_name, char *app_version,
-                      char *build_date, char *build_time, char *build_machine, 
-                      char *build_person, char *build_cflags)
+AppVersionInfo::setup(const char *pkg_name, const char *app_name, const char *app_version,
+                      const char *build_date, const char *build_time, const char *build_machine,
+                      const char *build_person, const char *build_cflags)
 {
   char month_name[8];
   int year, month, day, hour, minute, second;

Modified: incubator/trafficserver/traffic/trunk/libinktomi++/ink_args.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/libinktomi%2B%2B/ink_args.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/libinktomi++/ink_args.cc (original)
+++ incubator/trafficserver/traffic/trunk/libinktomi++/ink_args.cc Tue Apr 27 19:12:22 2010
@@ -60,7 +60,7 @@ static char *argument_types_descriptions
 
 static void
 process_arg(ArgumentDescription * argument_descriptions,
-            int n_argument_descriptions, int i, char ***argv, char *usage_string)
+            int n_argument_descriptions, int i, char ***argv, const char *usage_string)
 {
   char *arg = NULL;
   if (argument_descriptions[i].type) {
@@ -135,7 +135,7 @@ show_argument_configuration(ArgumentDesc
 }
 
 void
-process_args(ArgumentDescription * argument_descriptions, int n_argument_descriptions, char **argv, char *usage_string)
+process_args(ArgumentDescription * argument_descriptions, int n_argument_descriptions, char **argv, const char *usage_string)
 {
   int i = 0;
   //
@@ -203,7 +203,7 @@ process_args(ArgumentDescription * argum
 }
 
 void
-usage(ArgumentDescription * argument_descriptions, int n_argument_descriptions, char *usage_string)
+usage(ArgumentDescription * argument_descriptions, int n_argument_descriptions, const char *usage_string)
 {
   (void) argument_descriptions;
   (void) n_argument_descriptions;

Modified: incubator/trafficserver/traffic/trunk/libinktomi++/ink_args.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/libinktomi%2B%2B/ink_args.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/libinktomi++/ink_args.h (original)
+++ incubator/trafficserver/traffic/trunk/libinktomi++/ink_args.h Tue Apr 27 19:12:22 2010
@@ -34,11 +34,11 @@ Process arguments
 
 struct ArgumentDescription;
 
-typedef void ArgumentFunction(ArgumentDescription * argument_descriptions, int n_argument_descriptions, char *arg);
+typedef void ArgumentFunction(ArgumentDescription * argument_descriptions, int n_argument_descriptions, const char *arg);
 
 struct ArgumentDescription
 {
-  char *name;
+  const char *name;
   char key;
   /* 
      "I" = integer
@@ -50,10 +50,10 @@ struct ArgumentDescription
      "T" = toggle
      "S80" = read string, 80 chars max
    */
-  char *description;
-  char *type;
+  const char *description;
+  const char *type;
   void *location;
-  char *env;
+  const char *env;
   ArgumentFunction *pfn;
 };
 
@@ -67,11 +67,11 @@ extern char *program_name;      // expor
 */
 void show_argument_configuration(ArgumentDescription * argument_descriptions, int n_argument_descriptions);
 
-void usage(ArgumentDescription * argument_descriptions, int n_argument_descriptions, char *arg_unused);
+void usage(ArgumentDescription * argument_descriptions, int n_argument_descriptions, const char *arg_unused);
 
 /* Process all arguments
 */
 void process_args(ArgumentDescription * argument_descriptions,
-                  int n_argument_descriptions, char **argv, char *usage_string = 0);
+                  int n_argument_descriptions, char **argv, const char *usage_string = 0);
 
 #endif /*_INK_ARGS_H*/

Modified: incubator/trafficserver/traffic/trunk/libinktomi++/ink_base64.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/libinktomi%2B%2B/ink_base64.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/libinktomi++/ink_base64.cc (original)
+++ incubator/trafficserver/traffic/trunk/libinktomi++/ink_base64.cc Tue Apr 27 19:12:22 2010
@@ -223,7 +223,7 @@ ink_base64_decode(const char *inBuffer, 
   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/libinktomi++/ink_file.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/libinktomi%2B%2B/ink_file.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/libinktomi++/ink_file.cc (original)
+++ incubator/trafficserver/traffic/trunk/libinktomi++/ink_file.cc Tue Apr 27 19:12:22 2010
@@ -303,7 +303,7 @@ ink_file_fd_readline(int fd, int bufsz, 
 
 /* Write until NUL */
 int
-ink_file_fd_writestring(int fd, char *buf)
+ink_file_fd_writestring(int fd, const char *buf)
 {
   int len, i = 0;
 

Modified: incubator/trafficserver/traffic/trunk/libinktomi++/ink_file.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/libinktomi%2B%2B/ink_file.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/libinktomi++/ink_file.h (original)
+++ incubator/trafficserver/traffic/trunk/libinktomi++/ink_file.h Tue Apr 27 19:12:22 2010
@@ -69,6 +69,6 @@ int ink_file_lock(int fd, int type);
 int ink_file_trylock(int fd, int type);
 
 int ink_file_fd_readline(int fd, int bufsz, char *buf);
-int ink_file_fd_writestring(int fd, char *buf);
+int ink_file_fd_writestring(int fd, const char *buf);
 
 #endif // _ink_file_h_

Modified: incubator/trafficserver/traffic/trunk/libinktomi++/ink_hash_table.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/libinktomi%2B%2B/ink_hash_table.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/libinktomi++/ink_hash_table.cc (original)
+++ incubator/trafficserver/traffic/trunk/libinktomi++/ink_hash_table.cc Tue Apr 27 19:12:22 2010
@@ -161,7 +161,7 @@ ink_hash_table_destroy_and_xfree_values(
  *---------------------------------------------------------------------------*/
 
 int
-ink_hash_table_isbound(InkHashTable * ht_ptr, InkHashTableKey key)
+ink_hash_table_isbound(InkHashTable * ht_ptr, const char *key)
 {
   InkHashTableEntry *he_ptr;
 
@@ -182,7 +182,7 @@ ink_hash_table_isbound(InkHashTable * ht
  *---------------------------------------------------------------------------*/
 
 int
-ink_hash_table_lookup(InkHashTable * ht_ptr, InkHashTableKey key, InkHashTableValue * value_ptr)
+ink_hash_table_lookup(InkHashTable *ht_ptr, const char* key, InkHashTableValue *value_ptr)
 {
   InkHashTableEntry *he_ptr;
   InkHashTableValue value;
@@ -208,7 +208,7 @@ ink_hash_table_lookup(InkHashTable * ht_
  *---------------------------------------------------------------------------*/
 
 int
-ink_hash_table_delete(InkHashTable * ht_ptr, InkHashTableKey key)
+ink_hash_table_delete(InkHashTable * ht_ptr, const char *key)
 {
   char *tcl_key;
   Tcl_HashTable *tcl_ht_ptr;
@@ -237,16 +237,14 @@ ink_hash_table_delete(InkHashTable * ht_
  *---------------------------------------------------------------------------*/
 
 InkHashTableEntry *
-ink_hash_table_lookup_entry(InkHashTable * ht_ptr, InkHashTableKey key)
+ink_hash_table_lookup_entry(InkHashTable * ht_ptr, const char* key)
 {
-  char *tcl_key;
   Tcl_HashTable *tcl_ht_ptr;
   Tcl_HashEntry *tcl_he_ptr;
   InkHashTableEntry *he_ptr;
 
-  tcl_key = (char *) key;
   tcl_ht_ptr = (Tcl_HashTable *) ht_ptr;
-  tcl_he_ptr = Tcl_FindHashEntry(tcl_ht_ptr, tcl_key);
+  tcl_he_ptr = Tcl_FindHashEntry(tcl_ht_ptr, key);
   he_ptr = (InkHashTableEntry *) tcl_he_ptr;
 
   return (he_ptr);
@@ -266,15 +264,13 @@ ink_hash_table_lookup_entry(InkHashTable
  *---------------------------------------------------------------------------*/
 
 InkHashTableEntry *
-ink_hash_table_get_entry(InkHashTable * ht_ptr, InkHashTableKey key, int *new_value)
+ink_hash_table_get_entry(InkHashTable *ht_ptr, const char *key, int *new_value)
 {
-  char *tcl_key;
   Tcl_HashTable *tcl_ht_ptr;
   Tcl_HashEntry *tcl_he_ptr;
 
-  tcl_key = (char *) key;
   tcl_ht_ptr = (Tcl_HashTable *) ht_ptr;
-  tcl_he_ptr = Tcl_CreateHashEntry(tcl_ht_ptr, tcl_key, new_value);
+  tcl_he_ptr = Tcl_CreateHashEntry(tcl_ht_ptr, key, new_value);
 
   if (tcl_he_ptr == NULL) {
     ink_fatal(1, "%s: Tcl_CreateHashEntry returned NULL", "ink_hash_table_get_entry");
@@ -320,7 +316,7 @@ ink_hash_table_set_entry(InkHashTable * 
  *---------------------------------------------------------------------------*/
 
 void
-ink_hash_table_insert(InkHashTable * ht_ptr, InkHashTableKey key, InkHashTableValue value)
+ink_hash_table_insert(InkHashTable * ht_ptr, const char *key, InkHashTableValue value)
 {
   int new_value;
   InkHashTableEntry *he_ptr;

Modified: incubator/trafficserver/traffic/trunk/libinktomi++/ink_hash_table.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/libinktomi%2B%2B/ink_hash_table.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/libinktomi++/ink_hash_table.h (original)
+++ incubator/trafficserver/traffic/trunk/libinktomi++/ink_hash_table.h Tue Apr 27 19:12:22 2010
@@ -71,13 +71,13 @@ extern "C"
   InkHashTable *ink_hash_table_destroy(InkHashTable * ht_ptr);
   InkHashTable *ink_hash_table_destroy_and_free_values(InkHashTable * ht_ptr);
   InkHashTable *ink_hash_table_destroy_and_xfree_values(InkHashTable * ht_ptr);
-  inkcoreapi int ink_hash_table_isbound(InkHashTable * ht_ptr, InkHashTableKey key);
-  inkcoreapi int ink_hash_table_lookup(InkHashTable * ht_ptr, InkHashTableKey key, InkHashTableValue * value_ptr);
-  inkcoreapi int ink_hash_table_delete(InkHashTable * ht_ptr, InkHashTableKey key);
-  InkHashTableEntry *ink_hash_table_lookup_entry(InkHashTable * ht_ptr, InkHashTableKey key);
-  InkHashTableEntry *ink_hash_table_get_entry(InkHashTable * ht_ptr, InkHashTableKey key, int *new_value);
+  inkcoreapi int ink_hash_table_isbound(InkHashTable * ht_ptr, const char *key);
+  inkcoreapi int ink_hash_table_lookup(InkHashTable * ht_ptr, const char *key, InkHashTableValue * value_ptr);
+  inkcoreapi int ink_hash_table_delete(InkHashTable * ht_ptr, const char *key);
+  InkHashTableEntry *ink_hash_table_lookup_entry(InkHashTable * ht_ptr, const char *key);
+  InkHashTableEntry *ink_hash_table_get_entry(InkHashTable * ht_ptr, const char *key, int *new_value);
   void ink_hash_table_set_entry(InkHashTable * ht_ptr, InkHashTableEntry * he_ptr, InkHashTableValue value);
-  inkcoreapi void ink_hash_table_insert(InkHashTable * ht_ptr, InkHashTableKey key, InkHashTableValue value);
+  inkcoreapi void ink_hash_table_insert(InkHashTable * ht_ptr, const char *key, InkHashTableValue value);
   void ink_hash_table_map(InkHashTable * ht_ptr, InkHashTableEntryFunction map);
   InkHashTableKey ink_hash_table_entry_key(InkHashTable * ht_ptr, InkHashTableEntry * entry_ptr);
   inkcoreapi InkHashTableValue ink_hash_table_entry_value(InkHashTable * ht_ptr, InkHashTableEntry * entry_ptr);

Modified: incubator/trafficserver/traffic/trunk/libinktomi++/ink_memory.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/libinktomi%2B%2B/ink_memory.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/libinktomi++/ink_memory.cc (original)
+++ incubator/trafficserver/traffic/trunk/libinktomi++/ink_memory.cc Tue Apr 27 19:12:22 2010
@@ -450,7 +450,7 @@ ink_memzero(void *src_arg, int nbytes)
 
 
 void *
-ink_memcpy(void *s1, void *s2, int n)
+ink_memcpy(void *s1, const void *s2, int n)
 {
   register int i;
   register char *s, *d;

Modified: incubator/trafficserver/traffic/trunk/libinktomi++/ink_memory.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/libinktomi%2B%2B/ink_memory.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/libinktomi++/ink_memory.h (original)
+++ incubator/trafficserver/traffic/trunk/libinktomi++/ink_memory.h Tue Apr 27 19:12:22 2010
@@ -59,7 +59,7 @@ extern "C"
   void ink_memalign_free(void *ptr);
   char *ink_duplicate_string(char *ptr);        /* obsoleted by ink_string_duplicate --- don't use */
   void ink_memzero(void *src_arg, int nbytes);
-  void *ink_memcpy(void *s1, void *s2, int n);
+  void *ink_memcpy(void *s1, const void *s2, int n);
   void ink_bcopy(void *s1, void *s2, size_t n);
 
 #ifdef __cplusplus

Modified: incubator/trafficserver/traffic/trunk/libinktomi++/ink_sprintf.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/libinktomi%2B%2B/ink_sprintf.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/libinktomi++/ink_sprintf.cc (original)
+++ incubator/trafficserver/traffic/trunk/libinktomi++/ink_sprintf.cc Tue Apr 27 19:12:22 2010
@@ -51,7 +51,7 @@
 //////////////////////////////////////////////////////////////////////////////
 
 int
-ink_bsprintf(char *buffer, char *format, ...)
+ink_bsprintf(char *buffer, const char *format, ...)
 {
   int l;
 
@@ -65,10 +65,11 @@ ink_bsprintf(char *buffer, char *format,
 
 
 int
-ink_bvsprintf(char *buffer, char *format, va_list ap)
+ink_bvsprintf(char *buffer, const char *format, va_list ap)
 {
   int d_val;
-  char *s, *d, *p, *s_val, d_buffer[32];
+  const char *s;
+  char *d, *p, *s_val, d_buffer[32];
   va_list ap_local;
   va_copy(ap_local, ap);
 

Modified: incubator/trafficserver/traffic/trunk/libinktomi++/ink_sprintf.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/libinktomi%2B%2B/ink_sprintf.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/libinktomi++/ink_sprintf.h (original)
+++ incubator/trafficserver/traffic/trunk/libinktomi++/ink_sprintf.h Tue Apr 27 19:12:22 2010
@@ -39,9 +39,9 @@
 #include "ink_defs.h"
 
 int
-ink_bsprintf(char *buffer, char *format, ...)
+ink_bsprintf(char *buffer, const char *format, ...)
 PRINTFLIKE(2, 3);
 int
-ink_bvsprintf(char *buffer, char *format, va_list ap);
+ink_bvsprintf(char *buffer, const char *format, va_list ap);
 
 #endif

Modified: incubator/trafficserver/traffic/trunk/libinktomi++/ink_stack_trace.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/libinktomi%2B%2B/ink_stack_trace.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/libinktomi++/ink_stack_trace.cc (original)
+++ incubator/trafficserver/traffic/trunk/libinktomi++/ink_stack_trace.cc Tue Apr 27 19:12:22 2010
@@ -99,7 +99,7 @@ ink_stack_trace_dump(int sighandler_fram
 
   // Recopy and re-terminate the app name in case it has been trashed.
   char name[256];
-  char *msg = " - STACK TRACE: \n";
+  const char *msg = " - STACK TRACE: \n";
   ink_strncpy(name, program_name, sizeof(name) - 2);
   if (write(2, name, strlen(name)) == -1)
     return;

Modified: incubator/trafficserver/traffic/trunk/libinktomi++/ink_string.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/libinktomi%2B%2B/ink_string.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/libinktomi++/ink_string.cc (original)
+++ incubator/trafficserver/traffic/trunk/libinktomi++/ink_string.cc Tue Apr 27 19:12:22 2010
@@ -242,7 +242,6 @@ ink_string_find_dotted_extension(char *s
   return (p);
 }                               /* End ink_string_find_dotted_extension */
 
-
 /*---------------------------------------------------------------------------*
  
   char *ink_string_mpath(int nstrings, char *str1, bool free1, 
@@ -392,6 +391,24 @@ ink_string_mjoin(int nstrings, ...)
   return ns;
 }
 
+#if !defined(HAVE_STRNDUP)
+char *
+ink_strndup(const char *str, size_t n)
+{
+  char *cstr = NULL;
+
+  if (likely(str)) {
+    size_t len = strlen(str);
+    cstr = (char *)xmalloc(len + 1);
+    if (cstr == NULL)
+      return (NULL);
+    memcpy(cstr, str, len);
+    cstr[len] = '\0';
+  }
+  return (cstr);
+}
+#endif
+
 char *
 ink_strtok_r(char *s1, const char *s2, char **lasts)
 {

Modified: incubator/trafficserver/traffic/trunk/libinktomi++/ink_string.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/libinktomi%2B%2B/ink_string.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/libinktomi++/ink_string.h (original)
+++ incubator/trafficserver/traffic/trunk/libinktomi++/ink_string.h Tue Apr 27 19:12:22 2010
@@ -75,6 +75,13 @@ char *ink_string_mcopy(char *source);
          */
 char *ink_string_mjoin(int nstrings, ...);
 
+/* Missing fcns */
+#ifdef HAVE_STRNDUP
+#define  ink_strndup strndup
+#else
+char *ink_strndup(const char *str, size_t n);
+#endif
+
 /* 9/3/98 elam: Added this because NT doesn't have strtok_r() */
 char *ink_strtok_r(char *s1, const char *s2, char **lasts);
 
@@ -291,7 +298,7 @@ ink_string_fast_strncpy(char *dest, char
 }
 
 static inline int
-ink_string_fast_strncasecmp(char *s0, char *s1, int n)
+ink_string_fast_strncasecmp(const char *s0, const char *s1, int n)
 {
   int i;
   for (i = 0; (i < n) && (ParseRules::ink_tolower(s0[i]) == ParseRules::ink_tolower(s1[i])); i++);
@@ -302,9 +309,9 @@ ink_string_fast_strncasecmp(char *s0, ch
 }
 
 static inline int
-ink_string_fast_strcasecmp(char *s0, char *s1)
+ink_string_fast_strcasecmp(const char *s0, const char *s1)
 {
-  char *s = s0, *p = s1;
+  const char *s = s0, *p = s1;
   while (*s && *p && (ParseRules::ink_tolower(*s) == ParseRules::ink_tolower(*p))) {
     s++;
     p++;
@@ -316,9 +323,9 @@ ink_string_fast_strcasecmp(char *s0, cha
 }
 
 static inline int
-ink_string_fast_strcmp(char *s0, char *s1)
+ink_string_fast_strcmp(const char *s0, const char *s1)
 {
-  char *s = s0, *p = s1;
+  const char *s = s0, *p = s1;
 
   while (*s && *p && *s == *p) {
     s++;

Modified: incubator/trafficserver/traffic/trunk/libinktomi++/ink_time.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/libinktomi%2B%2B/ink_time.cc?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/libinktomi++/ink_time.cc (original)
+++ incubator/trafficserver/traffic/trunk/libinktomi++/ink_time.cc Tue Apr 27 19:12:22 2010
@@ -715,7 +715,7 @@ struct dtconv
  * once) when used in a mulithreaded program. Gack!
  */
 int
-cftime_replacement(char *s, int maxsize, char *format, const time_t * clock)
+cftime_replacement(char *s, int maxsize, const char *format, const time_t * clock)
 {
   struct tm tm;
 

Modified: incubator/trafficserver/traffic/trunk/libinktomi++/ink_time.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/libinktomi%2B%2B/ink_time.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/libinktomi++/ink_time.h (original)
+++ incubator/trafficserver/traffic/trunk/libinktomi++/ink_time.h Tue Apr 27 19:12:22 2010
@@ -128,7 +128,7 @@ ink_time_is_400th_year(int year)
 
 
 
-int cftime_replacement(char *s, int maxsize, char *format, const time_t * clock);
+int cftime_replacement(char *s, int maxsize, const char *format, const time_t * clock);
 #define cftime(s, format, clock) cftime_replacement(s, 8192, format, clock)
 
 #endif /* #ifndef _ink_time_h_ */

Modified: incubator/trafficserver/traffic/trunk/librecords/I_RecCore.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/librecords/I_RecCore.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/librecords/I_RecCore.h (original)
+++ incubator/trafficserver/traffic/trunk/librecords/I_RecCore.h Tue Apr 27 19:12:22 2010
@@ -42,55 +42,55 @@ int RecSetDiags(Diags * diags);
 // Stat Registration
 //-------------------------------------------------------------------------
 
-int RecRegisterStatInt(RecT rec_type, char *name, RecInt data_default, RecPersistT persist_type);
+int RecRegisterStatInt(RecT rec_type, const char *name, RecInt data_default, RecPersistT persist_type);
 
-int RecRegisterStatLLong(RecT rec_type, char *name, RecLLong data_default, RecPersistT persist_type);
+int RecRegisterStatLLong(RecT rec_type, const char *name, RecLLong data_default, RecPersistT persist_type);
 
-int RecRegisterStatFloat(RecT rec_type, char *name, RecFloat data_default, RecPersistT persist_type);
+int RecRegisterStatFloat(RecT rec_type, const char *name, RecFloat data_default, RecPersistT persist_type);
 
-int RecRegisterStatString(RecT rec_type, char *name, RecString data_default, RecPersistT persist_type);
+int RecRegisterStatString(RecT rec_type, const char *name, RecString data_default, RecPersistT persist_type);
 
-int RecRegisterStatCounter(RecT rec_type, char *name, RecCounter data_default, RecPersistT persist_type);
+int RecRegisterStatCounter(RecT rec_type, const char *name, RecCounter data_default, RecPersistT persist_type);
 
 //-------------------------------------------------------------------------
 // Config Registration
 //-------------------------------------------------------------------------
 
-int RecRegisterConfigInt(RecT rec_type, char *name,
+int RecRegisterConfigInt(RecT rec_type, const char *name,
                          RecInt data_default, RecUpdateT update_type,
-                         RecCheckT check_type, char *check_regex, RecAccessT access_type = RECA_NULL);
+                         RecCheckT check_type, const char *ccheck_regex, RecAccessT access_type = RECA_NULL);
 
-int RecRegisterConfigLLong(RecT rec_type, char *name,
+int RecRegisterConfigLLong(RecT rec_type, const char *name,
                            RecLLong data_default, RecUpdateT update_type,
-                           RecCheckT check_type, char *check_regex, RecAccessT access_type = RECA_NULL);
+                           RecCheckT check_type, const char *check_regex, RecAccessT access_type = RECA_NULL);
 
-int RecRegisterConfigFloat(RecT rec_type, char *name,
+int RecRegisterConfigFloat(RecT rec_type, const char *name,
                            RecFloat data_default, RecUpdateT update_type,
-                           RecCheckT check_type, char *check_regex, RecAccessT access_type = RECA_NULL);
+                           RecCheckT check_type, const char *check_regex, RecAccessT access_type = RECA_NULL);
 
-int RecRegisterConfigString(RecT rec_type, char *name,
-                            RecString data_default, RecUpdateT update_type,
-                            RecCheckT check_type, char *check_regex, RecAccessT access_type = RECA_NULL);
+int RecRegisterConfigString(RecT rec_type, const char *name,
+                            const char *data_default, RecUpdateT update_type,
+                            RecCheckT check_type, const char *check_regex, RecAccessT access_type = RECA_NULL);
 
-int RecRegisterConfigCounter(RecT rec_type, char *name,
+int RecRegisterConfigCounter(RecT rec_type, const char *name,
                              RecCounter data_default, RecUpdateT update_type,
-                             RecCheckT check_type, char *check_regex, RecAccessT access_type = RECA_NULL);
+                             RecCheckT check_type, const char *check_regex, RecAccessT access_type = RECA_NULL);
 
 //-------------------------------------------------------------------------
 // Config Change Notification
 //-------------------------------------------------------------------------
 
-int RecLinkConfigInt(char *name, RecInt * rec_int);
-int RecLinkConfigLLong(char *name, RecLLong * rec_llong);
-int RecLinkConfigInk32(char *name, ink32 * p_ink32);
-int RecLinkConfigInkU32(char *name, inku32 * p_inku32);
-int RecLinkConfigFloat(char *name, RecFloat * rec_float);
-int RecLinkConfigCounter(char *name, RecCounter * rec_counter);
-int RecLinkConfigString(char *name, RecString * rec_string);
-
-int RecRegisterConfigUpdateCb(char *name, RecConfigUpdateCb update_cb, void *cookie);
-int RecRegisterStatUpdateFunc(char *name, RecStatUpdateFunc update_func, void *cookie);
-int RecRegisterRawStatUpdateFunc(char *name, RecRawStatBlock * rsb,
+int RecLinkConfigInt(const char *name, RecInt * rec_int);
+int RecLinkConfigLLong(const char *name, RecLLong * rec_llong);
+int RecLinkConfigInk32(const char *name, ink32 * p_ink32);
+int RecLinkConfigInkU32(const char *name, inku32 * p_inku32);
+int RecLinkConfigFloat(const char *name, RecFloat * rec_float);
+int RecLinkConfigCounter(const char *name, RecCounter * rec_counter);
+int RecLinkConfigString(const char *name, RecString * rec_string);
+
+int RecRegisterConfigUpdateCb(const char *name, RecConfigUpdateCb update_cb, void *cookie);
+int RecRegisterStatUpdateFunc(const char *name, RecStatUpdateFunc update_func, void *cookie);
+int RecRegisterRawStatUpdateFunc(const char *name, RecRawStatBlock * rsb,
                                  int id, RecStatUpdateFunc update_func, void *cookie);
 
 //-------------------------------------------------------------------------
@@ -104,36 +104,36 @@ int RecRegisterRawStatUpdateFunc(char *n
 // already been taken out for the callback.
 
 // RecSetRecordConvert -> WebMgmtUtils.cc::varSetFromStr()
-int RecSetRecordConvert(char *name, RecString rec_string, bool lock = true);
-int RecSetRecordInt(char *name, RecInt rec_int, bool lock = true);
-int RecSetRecordLLong(char *name, RecLLong rec_llong, bool lock = true);
-int RecSetRecordFloat(char *name, RecFloat rec_float, bool lock = true);
-int RecSetRecordString(char *name, RecString rec_string, bool lock = true);
-int RecSetRecordCounter(char *name, RecCounter rec_counter, bool lock = true);
-
-int RecGetRecordInt(char *name, RecInt * rec_int, bool lock = true);
-int RecGetRecordLLong(char *name, RecLLong * rec_llong, bool lock = true);
-int RecGetRecordFloat(char *name, RecFloat * rec_float, bool lock = true);
-int RecGetRecordString(char *name, char *buf, int buf_len, bool lock = true);
-int RecGetRecordString_Xmalloc(char *name, RecString * rec_string, bool lock = true);
-int RecGetRecordCounter(char *name, RecCounter * rec_counter, bool lock = true);
-int RecGetRecordGeneric_Xmalloc(char *name, RecString * rec_string, bool lock = true);
+int RecSetRecordConvert(const char *name, const RecString rec_string, bool lock = true);
+int RecSetRecordInt(const char *name, RecInt rec_int, bool lock = true);
+int RecSetRecordLLong(const char *name, RecLLong rec_llong, bool lock = true);
+int RecSetRecordFloat(const char *name, RecFloat rec_float, bool lock = true);
+int RecSetRecordString(const char *name, const RecString rec_string, bool lock = true);
+int RecSetRecordCounter(const char *name, RecCounter rec_counter, bool lock = true);
+
+int RecGetRecordInt(const char *name, RecInt * rec_int, bool lock = true);
+int RecGetRecordLLong(const char *name, RecLLong * rec_llong, bool lock = true);
+int RecGetRecordFloat(const char *name, RecFloat * rec_float, bool lock = true);
+int RecGetRecordString(const char *name, char *buf, int buf_len, bool lock = true);
+int RecGetRecordString_Xmalloc(const char *name, RecString * rec_string, bool lock = true);
+int RecGetRecordCounter(const char *name, RecCounter * rec_counter, bool lock = true);
+int RecGetRecordGeneric_Xmalloc(const char *name, RecString * rec_string, bool lock = true);
 
 //------------------------------------------------------------------------
 // Record Attributes Reading
 //------------------------------------------------------------------------
-int RecGetRecordType(char *name, RecT * rec_type, bool lock = true);
-int RecGetRecordDataType(char *name, RecDataT * data_type, bool lock = true);
+int RecGetRecordType(const char *name, RecT * rec_type, bool lock = true);
+int RecGetRecordDataType(const char *name, RecDataT * data_type, bool lock = true);
 int RecGetRecordUpdateCount(RecT data_type);
-int RecGetRecordRelativeOrder(char *name, int *order, bool lock = true);
+int RecGetRecordRelativeOrder(const char *name, int *order, bool lock = true);
 
-int RecGetRecordUpdateType(char *name, RecUpdateT * update_type, bool lock = true);
-int RecGetRecordCheckType(char *name, RecCheckT * check_type, bool lock = true);
-int RecGetRecordCheckExpr(char *name, char **check_expr, bool lock = true);
+int RecGetRecordUpdateType(const char *name, RecUpdateT * update_type, bool lock = true);
+int RecGetRecordCheckType(const char *name, RecCheckT * check_type, bool lock = true);
+int RecGetRecordCheckExpr(const char *name, char **check_expr, bool lock = true);
 int RecGetRecordDefaultDataString_Xmalloc(char *name, char **buf, bool lock = true);
 
-int RecGetRecordAccessType(char *name, RecAccessT * secure, bool lock = true);
-int RecSetRecordAccessType(char *name, RecAccessT secure, bool lock = true);
+int RecGetRecordAccessType(const char *name, RecAccessT * secure, bool lock = true);
+int RecSetRecordAccessType(const char *name, RecAccessT secure, bool lock = true);
 
 void RecGetRecordTree(char *subtree = NULL);
 void RecGetRecordList(char *, char ***, int *);
@@ -142,8 +142,8 @@ int RecGetRecordPrefix_Xmalloc(char *pre
 //------------------------------------------------------------------------
 // Signal and Alarms
 //------------------------------------------------------------------------
-void RecSignalManager(int, char *);
-void RecSignalAlarm(int, char *);
+void RecSignalManager(int, const char *);
+void RecSignalAlarm(int, const char *);
 
 //-------------------------------------------------------------------------
 // Backwards Compatibility Items (REC_ prefix)
@@ -221,24 +221,24 @@ void RecSignalAlarm(int, char *);
   _var = (RecFloat)REC_ConfigReadFloat(_config_var_name); \
 } while (0)
 
-RecInt REC_ConfigReadInteger(char *name);
-RecLLong REC_ConfigReadLLong(char *name);
-char *REC_ConfigReadString(char *name);
-RecFloat REC_ConfigReadFloat(char *name);
-RecCounter REC_ConfigReadCounter(char *name);
+RecInt REC_ConfigReadInteger(const char *name);
+RecLLong REC_ConfigReadLLong(const char *name);
+char *REC_ConfigReadString(const char *name);
+RecFloat REC_ConfigReadFloat(const char *name);
+RecCounter REC_ConfigReadCounter(const char *name);
 
 // MGMT2 Marco's -- converting lmgmt->record_data->readXXX
-RecInt REC_readInteger(char *name, bool * found, bool lock = true);
+RecInt REC_readInteger(const char *name, bool * found, bool lock = true);
 RecLLong REC_readLLong(char *name, bool * found, bool lock = true);
 RecFloat REC_readFloat(char *name, bool * found, bool lock = true);
 RecCounter REC_readCounter(char *name, bool * found, bool lock = true);
-RecString REC_readString(char *name, bool * found, bool lock = true);
+RecString REC_readString(const char *name, bool * found, bool lock = true);
 
-bool REC_setInteger(char *name, int value, bool dirty = true);
-bool REC_setLLong(char *name, RecLLong value, bool dirty = true);
-bool REC_setFloat(char *name, float value, bool dirty = true);
-bool REC_setCounter(char *name, ink64 value, bool dirty = true);
-bool REC_setString(char *name, char *value, bool dirty = true);
+bool REC_setInteger(const char *name, int value, bool dirty = true);
+bool REC_setLLong(const char *name, RecLLong value, bool dirty = true);
+bool REC_setFloat(const char *name, float value, bool dirty = true);
+bool REC_setCounter(const char *name, ink64 value, bool dirty = true);
+bool REC_setString(const char *name, char *value, bool dirty = true);
 
 //------------------------------------------------------------------------
 // Clear Statistics

Modified: incubator/trafficserver/traffic/trunk/librecords/I_RecDefs.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/librecords/I_RecDefs.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/librecords/I_RecDefs.h (original)
+++ incubator/trafficserver/traffic/trunk/librecords/I_RecDefs.h Tue Apr 27 19:12:22 2010
@@ -51,6 +51,7 @@ typedef ink64 RecInt;
 typedef ink64 RecLLong;
 typedef float RecFloat;
 typedef char *RecString;
+typedef const char *RecStringConst;
 typedef ink64 RecCounter;
 
 enum RecT

Modified: incubator/trafficserver/traffic/trunk/librecords/I_RecProcess.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/librecords/I_RecProcess.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/librecords/I_RecProcess.h (original)
+++ incubator/trafficserver/traffic/trunk/librecords/I_RecProcess.h Tue Apr 27 19:12:22 2010
@@ -41,9 +41,7 @@ int RecProcessStart();
 
 RecRawStatBlock *RecAllocateRawStatBlock(int num_stats);
 
-int RecRegisterRawStat(RecRawStatBlock * rsb,
-                       RecT rec_type,
-                       char *name, RecDataT data_type, RecPersistT persist_type, int id, RecRawStatSyncCb sync_cb);
+int RecRegisterRawStat(RecRawStatBlock * rsb, RecT rec_type, const char *name, RecDataT data_type, RecPersistT persist_type, int id, RecRawStatSyncCb sync_cb);
 
 // RecRawStatRange* RecAllocateRawStatRange (int num_buckets);
 

Modified: incubator/trafficserver/traffic/trunk/librecords/P_RecCore.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/librecords/P_RecCore.h?rev=938607&r1=938606&r2=938607&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/librecords/P_RecCore.h (original)
+++ incubator/trafficserver/traffic/trunk/librecords/P_RecCore.h Tue Apr 27 19:12:22 2010
@@ -43,13 +43,13 @@ extern int g_num_update[];
 extern RecTree *g_records_tree;
 
 // records.config items
-extern char *g_rec_config_fpath;
+extern const char *g_rec_config_fpath;
 extern LLQ *g_rec_config_contents_llq;
 extern InkHashTable *g_rec_config_contents_ht;
 extern ink_mutex g_rec_config_lock;
 
 // stats.snap items
-extern char *g_stats_snap_fpath;
+extern const char *g_stats_snap_fpath;
 
 extern int g_type_records[][REC_MAX_RECORDS];
 extern int g_type_num_records[];
@@ -64,12 +64,12 @@ int RecCoreInit(RecModeT mode_type, Diag
 // Registration/Insertion
 //-------------------------------------------------------------------------
 
-RecRecord *RecRegisterStat(RecT rec_type, char *name, RecDataT data_type,
+RecRecord *RecRegisterStat(RecT rec_type, const char *name, RecDataT data_type,
                            RecData data_default, RecPersistT persist_type);
 
-RecRecord *RecRegisterConfig(RecT rec_type, char *name, RecDataT data_type,
+RecRecord *RecRegisterConfig(RecT rec_type, const char *name, RecDataT data_type,
                              RecData data_default, RecUpdateT update_type,
-                             RecCheckT check_type, char *check_regex, RecAccessT access_type = RECA_NULL);
+                             RecCheckT check_type, const char *check_regex, RecAccessT access_type = RECA_NULL);
 
 RecRecord *RecForceInsert(RecRecord * record);
 
@@ -77,10 +77,10 @@ RecRecord *RecForceInsert(RecRecord * re
 // Setting/Getting
 //-------------------------------------------------------------------------
 
-int RecSetRecord(RecT rec_type, char *name, RecDataT data_type,
-                 RecData * data, RecRawStat * raw_stat, bool lock = true);
+int RecSetRecord(RecT rec_type, const char *name, RecDataT data_type,
+                 RecData *data, RecRawStat *raw_stat, bool lock = true);
 
-int RecGetRecord_Xmalloc(char *name, RecDataT data_type, RecData * data, bool lock = true);
+int RecGetRecord_Xmalloc(const char *name, RecDataT data_type, RecData * data, bool lock = true);
 
 //-------------------------------------------------------------------------
 // Read/Sync to Disk



Mime
View raw message