Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Mar 2017 15:26:07 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r436819 - head/www/trafficserver/files
Message-ID:  <201703241526.v2OFQ7Dm060700@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Fri Mar 24 15:26:07 2017
New Revision: 436819
URL: https://svnweb.freebsd.org/changeset/ports/436819

Log:
  - Fix build with clang 4.0
  
  PR:		216641
  Approved by:	portmgr blanket

Added:
  head/www/trafficserver/files/patch-cmd_traffic__manager_MgmtHandlers.cc   (contents, props changed)
  head/www/trafficserver/files/patch-iocore_cluster_ClusterCache.cc   (contents, props changed)
  head/www/trafficserver/files/patch-mgmt_utils_MgmtSocket.cc   (contents, props changed)
  head/www/trafficserver/files/patch-proxy_Main.cc   (contents, props changed)
  head/www/trafficserver/files/patch-proxy_http_remap_RemapPluginInfo.cc   (contents, props changed)

Added: head/www/trafficserver/files/patch-cmd_traffic__manager_MgmtHandlers.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/trafficserver/files/patch-cmd_traffic__manager_MgmtHandlers.cc	Fri Mar 24 15:26:07 2017	(r436819)
@@ -0,0 +1,11 @@
+--- cmd/traffic_manager/MgmtHandlers.cc.orig	2016-07-11 23:03:32 UTC
++++ cmd/traffic_manager/MgmtHandlers.cc
+@@ -268,7 +268,7 @@ mgmt_synthetic_main(void *)
+     } else {
+       ink_thread thrId = ink_thread_create(synthetic_thread, (void *)&clientFD, 1);
+ 
+-      if (thrId <= 0) {
++      if (thrId == 0) {
+         mgmt_log(stderr, "[SyntheticHealthServer] Failed to create worker thread");
+       }
+     }

Added: head/www/trafficserver/files/patch-iocore_cluster_ClusterCache.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/trafficserver/files/patch-iocore_cluster_ClusterCache.cc	Fri Mar 24 15:26:07 2017	(r436819)
@@ -0,0 +1,20 @@
+--- iocore/cluster/ClusterCache.cc.orig	2016-07-11 23:03:32 UTC
++++ iocore/cluster/ClusterCache.cc
+@@ -437,7 +437,7 @@ CacheContinuation::do_op(Continuation *c
+   }
+   case CACHE_OPEN_WRITE:
+   case CACHE_OPEN_READ: {
+-    ink_release_assert(c > 0);
++    ink_release_assert(c);
+     //////////////////////
+     // Use short format //
+     //////////////////////
+@@ -500,7 +500,7 @@ CacheContinuation::do_op(Continuation *c
+ 
+   case CACHE_OPEN_READ_LONG:
+   case CACHE_OPEN_WRITE_LONG: {
+-    ink_release_assert(c > 0);
++    ink_release_assert(c);
+     //////////////////////
+     // Use long format  //
+     //////////////////////

Added: head/www/trafficserver/files/patch-mgmt_utils_MgmtSocket.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/trafficserver/files/patch-mgmt_utils_MgmtSocket.cc	Fri Mar 24 15:26:07 2017	(r436819)
@@ -0,0 +1,11 @@
+--- mgmt/utils/MgmtSocket.cc.orig	2016-07-11 23:03:32 UTC
++++ mgmt/utils/MgmtSocket.cc
+@@ -89,7 +89,7 @@ mgmt_fopen(const char *filename, const c
+     // no leak here as f will be returned if it is > 0
+     // coverity[overwrite_var]
+     f = ::fopen(filename, mode);
+-    if (f > 0)
++    if (f)
+       return f;
+     if (!mgmt_transient_error())
+       break;

Added: head/www/trafficserver/files/patch-proxy_Main.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/trafficserver/files/patch-proxy_Main.cc	Fri Mar 24 15:26:07 2017	(r436819)
@@ -0,0 +1,11 @@
+--- proxy/Main.cc.orig	2016-07-11 23:03:32 UTC
++++ proxy/Main.cc
+@@ -539,7 +539,7 @@ cmd_list(char * /* cmd ATS_UNUSED */)
+ 
+   Note("Cache Storage:");
+   Store tStore;
+-  if (tStore.read_config() < 0) {
++  if (tStore.read_config() != NULL) {
+     Note("config read failure");
+     return CMD_FAILED;
+   } else {

Added: head/www/trafficserver/files/patch-proxy_http_remap_RemapPluginInfo.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/trafficserver/files/patch-proxy_http_remap_RemapPluginInfo.cc	Fri Mar 24 15:26:07 2017	(r436819)
@@ -0,0 +1,11 @@
+--- proxy/http/remap/RemapPluginInfo.cc.orig	2016-07-11 23:03:32 UTC
++++ proxy/http/remap/RemapPluginInfo.cc
+@@ -39,7 +39,7 @@ remap_plugin_info::remap_plugin_info(cha
+ {
+   // coverity did not see ats_free
+   // coverity[ctor_dtor_leak]
+-  if (_path && likely((path = ats_strdup(_path)) > 0))
++  if (_path && likely((path = ats_strdup(_path)) != NULL))
+     path_size = strlen(path);
+ }
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703241526.v2OFQ7Dm060700>