You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by mp...@apache.org on 2016/03/14 23:50:55 UTC

mesos git commit: Marked a few internal functions `static`.

Repository: mesos
Updated Branches:
  refs/heads/master b50b56071 -> e431ed944


Marked a few internal functions `static`.

Review: https://reviews.apache.org/r/44734/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/e431ed94
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/e431ed94
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/e431ed94

Branch: refs/heads/master
Commit: e431ed944b24421666c9a18544fea2fbe80cb4c1
Parents: b50b560
Author: Neil Conway <ne...@gmail.com>
Authored: Mon Mar 14 18:49:44 2016 -0400
Committer: Michael Park <mp...@apache.org>
Committed: Mon Mar 14 18:49:44 2016 -0400

----------------------------------------------------------------------
 src/common/http.cpp | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/e431ed94/src/common/http.cpp
----------------------------------------------------------------------
diff --git a/src/common/http.cpp b/src/common/http.cpp
index 3e92979..ff3b7fc 100644
--- a/src/common/http.cpp
+++ b/src/common/http.cpp
@@ -454,7 +454,7 @@ void json(JSON::ObjectWriter* writer, const Attributes& attributes)
 }
 
 
-void json(JSON::ObjectWriter* writer, const CommandInfo& command)
+static void json(JSON::ObjectWriter* writer, const CommandInfo& command)
 {
   if (command.has_shell()) {
     writer->field("shell", command.shell());
@@ -481,7 +481,7 @@ void json(JSON::ObjectWriter* writer, const CommandInfo& command)
 }
 
 
-void json(JSON::ObjectWriter* writer, const ContainerStatus& status)
+static void json(JSON::ObjectWriter* writer, const ContainerStatus& status)
 {
   if (status.network_infos().size() > 0) {
     writer->field("network_infos", status.network_infos());
@@ -511,7 +511,7 @@ void json(JSON::ArrayWriter* writer, const Labels& labels)
 }
 
 
-void json(JSON::ObjectWriter* writer, const NetworkInfo& info)
+static void json(JSON::ObjectWriter* writer, const NetworkInfo& info)
 {
   if (info.has_ip_address()) {
     writer->field("ip_address", info.ip_address());
@@ -588,25 +588,25 @@ void json(JSON::ObjectWriter* writer, const TaskStatus& status)
 }
 
 
-void json(JSON::NumberWriter* writer, const Value::Scalar& scalar)
+static void json(JSON::NumberWriter* writer, const Value::Scalar& scalar)
 {
   writer->set(scalar.value());
 }
 
 
-void json(JSON::StringWriter* writer, const Value::Ranges& ranges)
+static void json(JSON::StringWriter* writer, const Value::Ranges& ranges)
 {
   writer->append(stringify(ranges));
 }
 
 
-void json(JSON::StringWriter* writer, const Value::Set& set)
+static void json(JSON::StringWriter* writer, const Value::Set& set)
 {
   writer->append(stringify(set));
 }
 
 
-void json(JSON::StringWriter* writer, const Value::Text& text)
+static void json(JSON::StringWriter* writer, const Value::Text& text)
 {
   writer->append(text.value());
 }