You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ti...@apache.org on 2016/06/01 16:30:11 UTC
[2/2] mesos git commit: Fixed a minor style issue in stout.
Fixed a minor style issue in stout.
Review: https://reviews.apache.org/r/48133/
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/f4431a9e
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/f4431a9e
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/f4431a9e
Branch: refs/heads/master
Commit: f4431a9e07346ce1ff6dcbfce92146631cda02ac
Parents: 79a7102
Author: Kapil Arya <ka...@mesosphere.io>
Authored: Wed Jun 1 18:15:25 2016 +0200
Committer: Till Toenshoff <to...@me.com>
Committed: Wed Jun 1 18:15:25 2016 +0200
----------------------------------------------------------------------
3rdparty/stout/include/stout/protobuf.hpp | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/f4431a9e/3rdparty/stout/include/stout/protobuf.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/stout/include/stout/protobuf.hpp b/3rdparty/stout/include/stout/protobuf.hpp
index 7bf704d..3c586ce 100644
--- a/3rdparty/stout/include/stout/protobuf.hpp
+++ b/3rdparty/stout/include/stout/protobuf.hpp
@@ -87,9 +87,12 @@ inline Try<Nothing> write(int fd, const google::protobuf::Message& message)
#ifdef __WINDOWS__
// NOTE: Ordinarily this would go in a Windows-specific header; we put it here
// to avoid complex forward declarations.
-inline Try<Nothing> write(HANDLE handle, const google::protobuf::Message& message)
+inline Try<Nothing> write(
+ HANDLE handle,
+ const google::protobuf::Message& message)
{
- return write(_open_osfhandle(reinterpret_cast<intptr_t>(handle), O_WRONLY), message);
+ return write(
+ _open_osfhandle(reinterpret_cast<intptr_t>(handle), O_WRONLY), message);
}
#endif // __WINDOWS__
@@ -317,7 +320,10 @@ Result<T> read(int fd, bool ignorePartial = false, bool undoFailed = false)
// NOTE: Ordinarily this would go in a Windows-specific header; we put it here
// to avoid complex forward declarations.
template <typename T>
-Result<T> read(HANDLE handle, bool ignorePartial = false, bool undoFailed = false)
+Result<T> read(
+ HANDLE handle,
+ bool ignorePartial = false,
+ bool undoFailed = false)
{
return read<T>(
_open_osfhandle(reinterpret_cast<intptr_t>(handle), O_RDONLY),