You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by hc...@apache.org on 2014/12/06 19:54:43 UTC

thrift git commit: make style applied

Repository: thrift
Updated Branches:
  refs/heads/master bf9603c77 -> 4c1fde226


make style applied


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

Branch: refs/heads/master
Commit: 4c1fde226ebe601d673a3457c71fe48902ce5e2d
Parents: bf9603c
Author: Konrad Grochowski <hc...@apache.org>
Authored: Sat Dec 6 19:54:26 2014 +0100
Committer: Konrad Grochowski <hc...@apache.org>
Committed: Sat Dec 6 19:54:26 2014 +0100

----------------------------------------------------------------------
 lib/cpp/src/thrift/transport/TPipe.cpp       | 12 ++++++------
 lib/cpp/src/thrift/transport/TPipeServer.cpp | 20 ++++++++++----------
 2 files changed, 16 insertions(+), 16 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/thrift/blob/4c1fde22/lib/cpp/src/thrift/transport/TPipe.cpp
----------------------------------------------------------------------
diff --git a/lib/cpp/src/thrift/transport/TPipe.cpp b/lib/cpp/src/thrift/transport/TPipe.cpp
index 4f3eca0..8939d50 100644
--- a/lib/cpp/src/thrift/transport/TPipe.cpp
+++ b/lib/cpp/src/thrift/transport/TPipe.cpp
@@ -263,12 +263,12 @@ void TPipe::open() {
   do {
     DWORD flags = FILE_FLAG_OVERLAPPED; // async mode, so we can do reads at the same time as writes
     hPipe.reset(CreateFileA(pipename_.c_str(),
-                           GENERIC_READ | GENERIC_WRITE,
-                           0,             // no sharing
-                           NULL,          // default security attributes
-                           OPEN_EXISTING, // opens existing pipe
-                           flags,
-                           NULL)); // no template file
+                            GENERIC_READ | GENERIC_WRITE,
+                            0,             // no sharing
+                            NULL,          // default security attributes
+                            OPEN_EXISTING, // opens existing pipe
+                            flags,
+                            NULL)); // no template file
 
     if (hPipe.h != INVALID_HANDLE_VALUE)
       break; // success!

http://git-wip-us.apache.org/repos/asf/thrift/blob/4c1fde22/lib/cpp/src/thrift/transport/TPipeServer.cpp
----------------------------------------------------------------------
diff --git a/lib/cpp/src/thrift/transport/TPipeServer.cpp b/lib/cpp/src/thrift/transport/TPipeServer.cpp
index 9ea5d50..3779d7f 100644
--- a/lib/cpp/src/thrift/transport/TPipeServer.cpp
+++ b/lib/cpp/src/thrift/transport/TPipeServer.cpp
@@ -338,16 +338,16 @@ bool TNamedPipeServer::createNamedPipe() {
   sa.bInheritHandle = FALSE;
 
   // Create an instance of the named pipe
-  TAutoHandle hPipe(CreateNamedPipeA(pipename_.c_str(),   // pipe name
-                                    PIPE_ACCESS_DUPLEX |  // read/write access
-                                    FILE_FLAG_OVERLAPPED, // async mode
-                                    PIPE_TYPE_BYTE |      // byte type pipe
-                                    PIPE_READMODE_BYTE,   // byte read mode
-                                    maxconns_,            // max. instances
-                                    bufsize_,             // output buffer size
-                                    bufsize_,             // input buffer size
-                                    0,                    // client time-out
-                                    &sa));                // security attributes
+  TAutoHandle hPipe(CreateNamedPipeA(pipename_.c_str(),    // pipe name
+                                     PIPE_ACCESS_DUPLEX |  // read/write access
+                                     FILE_FLAG_OVERLAPPED, // async mode
+                                     PIPE_TYPE_BYTE |      // byte type pipe
+                                     PIPE_READMODE_BYTE,   // byte read mode
+                                     maxconns_,            // max. instances
+                                     bufsize_,             // output buffer size
+                                     bufsize_,             // input buffer size
+                                     0,                    // client time-out
+                                     &sa));                // security attributes
 
   if (hPipe.h == INVALID_HANDLE_VALUE) {
     Pipe_.reset();