trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bc...@apache.org
Subject [trafficserver] branch 7.0.x updated: TS-4866: Fix compiler warnings
Date Tue, 27 Sep 2016 18:08:27 GMT
This is an automated email from the ASF dual-hosted git repository.

bcall pushed a commit to branch 7.0.x
in repository https://git-dual.apache.org/repos/asf/trafficserver.git

The following commit(s) were added to refs/heads/7.0.x by this push:
       new  719dda8   TS-4866: Fix compiler warnings
719dda8 is described below

commit 719dda8af88098cd1f8653aaa52b3d278deff6e1
Author: Leif Hedstrom <zwoop@apache.org>
AuthorDate: Fri Sep 23 08:46:19 2016 -0600

    TS-4866: Fix compiler warnings
    
    (cherry picked from commit 657d8db5e9c6e16ed7f4dd94662afff2d9a6f592)
---
 cmd/traffic_cop/traffic_cop.cc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cmd/traffic_cop/traffic_cop.cc b/cmd/traffic_cop/traffic_cop.cc
index 16b90e7..f0c9e87 100644
--- a/cmd/traffic_cop/traffic_cop.cc
+++ b/cmd/traffic_cop/traffic_cop.cc
@@ -609,7 +609,7 @@ config_reload_records()
   struct stat stat_buf;
   static time_t last_mod = 0;
   char log_filename[PATH_NAME_MAX];
-  int tmp;
+  int tmp_int = 3;
 
   ats_scoped_str bindir;
   ats_scoped_str logdir;
@@ -661,12 +661,12 @@ config_reload_records()
   config_read_int("proxy.config.cluster.rsport", &rs_port, true);
   config_read_int("proxy.config.cop.init_sleep_time", &init_sleep_time, true);
 
-  config_read_int("proxy.config.cop.active_health_checks", &tmp, true);
+  config_read_int("proxy.config.cop.active_health_checks", &tmp_int, true);
   // 0 == No servers are killed
   // 1 == Only traffic_manager can be killed on failure
   // 2 == Only traffic_server can be killed on failure
   // 3 == Any failing healthchecks can cause restarts (default)
-  switch (tmp) {
+  switch (tmp_int) {
   case 0:
     active_health_checks = COP_KILL_NONE;
     break;

-- 
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <commits@trafficserver.apache.org>'].

Mime
View raw message