You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by al...@apache.org on 2016/12/05 17:39:31 UTC

mesos git commit: Fixed whitespace and code style in Network::Address.

Repository: mesos
Updated Branches:
  refs/heads/master 61e2dc1d8 -> c04fec676


Fixed whitespace and code style in Network::Address.

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


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

Branch: refs/heads/master
Commit: c04fec6769dd7b6642a942aa7c4d73eaa0cc74f1
Parents: 61e2dc1
Author: Neil Conway <ne...@gmail.com>
Authored: Mon Dec 5 18:37:39 2016 +0100
Committer: Alexander Rukletsov <al...@apache.org>
Committed: Mon Dec 5 18:39:38 2016 +0100

----------------------------------------------------------------------
 3rdparty/libprocess/include/process/address.hpp | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/c04fec67/3rdparty/libprocess/include/process/address.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/include/process/address.hpp b/3rdparty/libprocess/include/process/address.hpp
index a2eeb39..2a2ccf8 100644
--- a/3rdparty/libprocess/include/process/address.hpp
+++ b/3rdparty/libprocess/include/process/address.hpp
@@ -112,9 +112,10 @@ public:
 
 private:
   friend class inet::Address;
-  #ifndef __WINDOWS__
+#ifndef __WINDOWS__
   friend class unix::Address;
 #endif // __WINDOWS__
+
   template <typename AddressType>
   friend Try<AddressType> convert(Try<Address>&& address);
   friend std::ostream& operator<<(std::ostream& stream, const Address& address);
@@ -356,13 +357,11 @@ inline Try<unix::Address> convert(Try<Address>&& address)
 inline std::ostream& operator<<(std::ostream& stream, const Address& address)
 {
   switch (address.family()) {
-    case Address::Family::INET: {
+    case Address::Family::INET:
       return stream << inet::Address(address.sockaddr.in);
-    }
 #ifndef __WINDOWS__
-    case Address::Family::UNIX: {
+    case Address::Family::UNIX:
       return stream << unix::Address(address.sockaddr.un);
-    }
 #endif // __WINDOWS__
   }