trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zw...@apache.org
Subject svn commit: r930384 - in /incubator/trafficserver/traffic/trunk: iocore/cluster/ClusterLoadMonitor.cc proxy/hdrs/MIME.cc proxy/logging/LogObject.cc proxy/mgmt2/api2/CfgContextUtils.cc
Date Fri, 02 Apr 2010 21:05:57 GMT
Author: zwoop
Date: Fri Apr  2 21:05:57 2010
New Revision: 930384

URL: http://svn.apache.org/viewvc?rev=930384&view=rev
Log:
TS-282: Cleanup for building with gcc 4.5. Tested on MacOSX with 4.5 and FedoraCore with gcc
4.4.3

Modified:
    incubator/trafficserver/traffic/trunk/iocore/cluster/ClusterLoadMonitor.cc
    incubator/trafficserver/traffic/trunk/proxy/hdrs/MIME.cc
    incubator/trafficserver/traffic/trunk/proxy/logging/LogObject.cc
    incubator/trafficserver/traffic/trunk/proxy/mgmt2/api2/CfgContextUtils.cc

Modified: incubator/trafficserver/traffic/trunk/iocore/cluster/ClusterLoadMonitor.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/iocore/cluster/ClusterLoadMonitor.cc?rev=930384&r1=930383&r2=930384&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/iocore/cluster/ClusterLoadMonitor.cc (original)
+++ incubator/trafficserver/traffic/trunk/iocore/cluster/ClusterLoadMonitor.cc Fri Apr  2
21:05:57 2010
@@ -166,8 +166,8 @@ ClusterLoadMonitor::compute_cluster_load
 
   // Log ping latency in history buffer.
 
-  ping_response_history_buf[ping_history_buf_head] = current_ping_latency;
-  ping_history_buf_head = ++ping_history_buf_head % ping_history_buf_length;
+  ping_response_history_buf[ping_history_buf_head++] = current_ping_latency;
+  ping_history_buf_head = ping_history_buf_head % ping_history_buf_length;
 
   // Determine the current state of the cluster interconnect using
   // the configured limits.  We determine the state as follows.

Modified: incubator/trafficserver/traffic/trunk/proxy/hdrs/MIME.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/hdrs/MIME.cc?rev=930384&r1=930383&r2=930384&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/hdrs/MIME.cc (original)
+++ incubator/trafficserver/traffic/trunk/proxy/hdrs/MIME.cc Fri Apr  2 21:05:57 2010
@@ -946,7 +946,7 @@ mime_init_date_format_table()
 
   time_t now_secs;
   int i, now_days, first_days, last_days, num_days;
-  int m, d, y;
+  int m=0, d=0, y=0;
 
 #if defined (VxWorks)
   struct timeval tv;
@@ -3421,7 +3421,7 @@ mime_format_date(char *buffer, time_t va
   };
 
   char *buf;
-  int sec, min, hour, wday, mday, year, month;
+  int sec, min, hour, wday, mday=0, year=0, month=0;
 
   buf = buffer;
 

Modified: incubator/trafficserver/traffic/trunk/proxy/logging/LogObject.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/logging/LogObject.cc?rev=930384&r1=930383&r2=930384&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/logging/LogObject.cc (original)
+++ incubator/trafficserver/traffic/trunk/proxy/logging/LogObject.cc Fri Apr  2 21:05:57 2010
@@ -66,8 +66,8 @@ LogBufferManager::flush_buffers(LogBuffe
       if (bytes_flushed > 0)
         total_bytes_flushed += bytes_flushed;
       delete _delay_delete_array[_head];
-      _delay_delete_array[_head] = flush_buffer;
-      _head = ++_head % DELAY_DELETE_SIZE;
+      _delay_delete_array[_head++] = flush_buffer;
+      _head = _head % DELAY_DELETE_SIZE;
       delcnt++;
     }
     Debug("log2-logbuffer", "flushed %d buffers: %lu bytes", delcnt, (unsigned long) total_bytes_flushed);

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=930384&r1=930383&r2=930384&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/mgmt2/api2/CfgContextUtils.cc (original)
+++ incubator/trafficserver/traffic/trunk/proxy/mgmt2/api2/CfgContextUtils.cc Fri Apr  2 21:05:57
2010
@@ -1179,7 +1179,7 @@ string_to_hms_time(const char *str, INKH
       pos++;
     }
 
-    *str++;
+    ++str;
   }
 
   if (!valid)
@@ -2069,7 +2069,7 @@ chopWhiteSpaces_alloc(char *str)
   // skip any leading white spaces
   while (*str != '\0') {
     if ((*str) == ' ') {
-      *str++;
+      ++str;
       continue;
     }
     break;



Mime
View raw message