Repository: mesos
Updated Branches:
  refs/heads/master 326e23a42 -> 6a19ad12b


Fixed a warning reported by clang.


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

Branch: refs/heads/master
Commit: 6a19ad12b5c981b3c265a237824cb7e9ac05ca2d
Parents: 18845af
Author: Jie Yu <yujie....@gmail.com>
Authored: Thu Dec 1 12:09:27 2016 -0800
Committer: Jie Yu <yujie....@gmail.com>
Committed: Thu Dec 1 12:09:36 2016 -0800

----------------------------------------------------------------------
 src/slave/containerizer/mesos/io/switchboard_main.cpp | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/6a19ad12/src/slave/containerizer/mesos/io/switchboard_main.cpp
----------------------------------------------------------------------
diff --git a/src/slave/containerizer/mesos/io/switchboard_main.cpp 
b/src/slave/containerizer/mesos/io/switchboard_main.cpp
index 923a765..5800217 100644
--- a/src/slave/containerizer/mesos/io/switchboard_main.cpp
+++ b/src/slave/containerizer/mesos/io/switchboard_main.cpp
@@ -55,9 +55,8 @@ int main(int argc, char** argv)
   run.await();
 
   if (!run.isReady()) {
-    EXIT(EXIT_FAILURE) << "The io switchboard server failed:"
-                       << " " << run.isFailed() ? run.failure()
-                                                : "discarded";
+    EXIT(EXIT_FAILURE) << "The io switchboard server failed: "
+                       << (run.isFailed() ? run.failure() : "discarded");
   }
 
   return EXIT_SUCCESS;

Reply via email to