You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2017/11/28 23:34:14 UTC
[trafficserver] branch master updated: Cleans up some build issue
and unecessary casts
This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new edbb969 Cleans up some build issue and unecessary casts
edbb969 is described below
commit edbb9692712b66bbcaa0dc78936f66b82adaba5e
Author: Leif Hedstrom <zw...@apache.org>
AuthorDate: Tue Nov 28 16:15:20 2017 -0700
Cleans up some build issue and unecessary casts
---
proxy/http/HttpTransact.cc | 5 ++---
proxy/logstats.cc | 2 +-
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/proxy/http/HttpTransact.cc b/proxy/http/HttpTransact.cc
index c79b0f6..a7138c4 100644
--- a/proxy/http/HttpTransact.cc
+++ b/proxy/http/HttpTransact.cc
@@ -7359,9 +7359,8 @@ HttpTransact::handle_server_died(State *s)
body_type = "response#bad_response";
break;
case CONNECTION_ERROR:
- status = HTTP_STATUS_BAD_GATEWAY;
- reason =
- static_cast<const char *>(get_error_string(s->cause_of_death_errno == 0 ? -ENET_CONNECT_FAILED : s->cause_of_death_errno));
+ status = HTTP_STATUS_BAD_GATEWAY;
+ reason = get_error_string(s->cause_of_death_errno == 0 ? -ENET_CONNECT_FAILED : s->cause_of_death_errno);
body_type = "connect#failed_connect";
break;
case OPEN_RAW_ERROR:
diff --git a/proxy/logstats.cc b/proxy/logstats.cc
index 7efaea2..0c1d2ac 100644
--- a/proxy/logstats.cc
+++ b/proxy/logstats.cc
@@ -1257,10 +1257,10 @@ parse_log_buff(LogBufferHeader *buf_header, bool summary = false, bool aggregate
// Parsed results
int http_code = 0, size = 0, result = 0, hier = 0, elapsed = 0;
+ bool ipv6 = false;
OriginStats *o_stats;
HTTPMethod method;
URLScheme scheme;
- bool ipv6;
if (!fieldlist) {
fieldlist = new LogFieldList;
--
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>'].