trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mas...@apache.org
Subject [trafficserver] branch master updated: Fix a build issue that use of undeclared variables
Date Thu, 09 Feb 2017 02:02:42 GMT
This is an automated email from the ASF dual-hosted git repository.

maskit pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/trafficserver.git

The following commit(s) were added to refs/heads/master by this push:
       new  734aa31   Fix a build issue that use of undeclared variables
734aa31 is described below

commit 734aa31e0e6b4b200f960eb2be0282ce4826b969
Author: Masakazu Kitajo <maskit@apache.org>
AuthorDate: Thu Feb 9 10:13:50 2017 +0900

    Fix a build issue that use of undeclared variables
    
    PR-1426 causes build error on some platforms which doesn't support congestion control.
---
 iocore/net/P_UnixNetVConnection.h | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/iocore/net/P_UnixNetVConnection.h b/iocore/net/P_UnixNetVConnection.h
index 0999049..b6fcada 100644
--- a/iocore/net/P_UnixNetVConnection.h
+++ b/iocore/net/P_UnixNetVConnection.h
@@ -453,10 +453,11 @@ UnixNetVConnection::set_tcp_congestion_control(int side)
   RecString congestion_control;
   int ret;
 
-  if (side == CLIENT_SIDE)
+  if (side == CLIENT_SIDE) {
     ret = REC_ReadConfigStringAlloc(congestion_control, "proxy.config.net.tcp_congestion_control_in");
-  else
+  } else {
     ret = REC_ReadConfigStringAlloc(congestion_control, "proxy.config.net.tcp_congestion_control_out");
+  }
 
   if (ret == REC_ERR_OKAY) {
     int len = strlen(congestion_control);
@@ -475,7 +476,7 @@ UnixNetVConnection::set_tcp_congestion_control(int side)
   }
   return -1;
 #else
-  Debug("socket", "Setting TCP congestion control %.*s is not supported on this platform.",
len, name);
+  Debug("socket", "Setting TCP congestion control is not supported on this platform.");
   return -1;
 #endif
 }

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

Mime
View raw message