trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bc...@apache.org
Subject [trafficserver] branch master updated: TS-4823: gcc ordered comparison of pointer with integer zero warnings Fixed wccp issues
Date Thu, 08 Sep 2016 00:16:44 GMT
This is an automated email from the ASF dual-hosted git repository.

bcall 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  e55b046   TS-4823: gcc ordered comparison of pointer with integer zero warnings
Fixed wccp issues
e55b046 is described below

commit e55b046406af47ba28c76fe3ee5c735b090192ee
Author: Bryan Call <bcall@apache.org>
AuthorDate: Wed Sep 7 17:15:50 2016 -0700

    TS-4823: gcc ordered comparison of pointer with integer zero warnings
    Fixed wccp issues
---
 lib/wccp/WccpConfig.cc | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/wccp/WccpConfig.cc b/lib/wccp/WccpConfig.cc
index 9759274..670071e 100644
--- a/lib/wccp/WccpConfig.cc
+++ b/lib/wccp/WccpConfig.cc
@@ -85,15 +85,15 @@ typedef std::vector<CfgString> CfgOpts;
 
 #define N_OPTS(x) (sizeof(x) / sizeof(*x))
 
-CfgString FORWARD_OPTS[]    = {{"gre"}, {"l2"}};
+CfgString FORWARD_OPTS[]    = {{"gre", false}, {"l2", false}};
 size_t const N_FORWARD_OPTS = sizeof(FORWARD_OPTS) / sizeof(*FORWARD_OPTS);
 
-CfgString RETURN_OPTS[]    = {{"gre"}, {"l2"}};
+CfgString RETURN_OPTS[]    = {{"gre", false}, {"l2", false}};
 size_t const N_RETURN_OPTS = sizeof(RETURN_OPTS) / sizeof(*RETURN_OPTS);
 
-CfgString ASSIGN_OPTS[] = {{"hash"}, {"mask"}};
+CfgString ASSIGN_OPTS[] = {{"hash", false}, {"mask", false}};
 
-CfgString HASH_OPTS[] = {{"src_ip"}, {"dst_ip"}, {"src_port"}, {"dst_port"}};
+CfgString HASH_OPTS[] = {{"src_ip", false}, {"dst_ip", false}, {"src_port", false}, {"dst_port",
false}};
 
 ts::Errata::Code
 code_max(ts::Errata const &err)

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

Mime
View raw message