Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(254)

Unified Diff: native_client_sdk/src/libraries/nacl_io/kernel_handle.cc

Issue 303223007: [NaCl SDK] nacl_io: Run clang-format over nacl_io sources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/libraries/nacl_io/kernel_handle.cc
diff --git a/native_client_sdk/src/libraries/nacl_io/kernel_handle.cc b/native_client_sdk/src/libraries/nacl_io/kernel_handle.cc
index 9ad4605231baababfa426c852e75a69e7c17bd82..29c4890975794b48611e77b75c47c5f9c6e68c80 100644
--- a/native_client_sdk/src/libraries/nacl_io/kernel_handle.cc
+++ b/native_client_sdk/src/libraries/nacl_io/kernel_handle.cc
@@ -17,10 +17,12 @@
namespace nacl_io {
// It is only legal to construct a handle while the kernel lock is held.
-KernelHandle::KernelHandle() : filesystem_(NULL), node_(NULL) {}
+KernelHandle::KernelHandle() : filesystem_(NULL), node_(NULL) {
+}
KernelHandle::KernelHandle(const ScopedFilesystem& fs, const ScopedNode& node)
- : filesystem_(fs), node_(node) {}
+ : filesystem_(fs), node_(node) {
+}
KernelHandle::~KernelHandle() {
// Force release order for cases where filesystem_ is not ref'd by mounting.
@@ -153,7 +155,8 @@ Error KernelHandle::VFcntl(int request, int* result, va_list args) {
return ENOSYS;
}
-Error KernelHandle::Accept(PP_Resource* new_sock, struct sockaddr* addr,
+Error KernelHandle::Accept(PP_Resource* new_sock,
+ struct sockaddr* addr,
socklen_t* len) {
SocketNode* sock = socket_node();
if (!sock)
@@ -200,10 +203,7 @@ Error KernelHandle::RecvFrom(void* buf,
out_len);
}
-Error KernelHandle::Send(const void* buf,
- size_t len,
- int flags,
- int* out_len) {
+Error KernelHandle::Send(const void* buf, size_t len, int flags, int* out_len) {
SocketNode* sock = socket_node();
if (!sock)
return ENOTSOCK;
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/kernel_handle.h ('k') | native_client_sdk/src/libraries/nacl_io/kernel_intercept.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698