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

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

Issue 73083005: [NaCl SDK] Enable linux host build for nacl_io and nacl_io_tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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/mount_dev.cc
diff --git a/native_client_sdk/src/libraries/nacl_io/mount_dev.cc b/native_client_sdk/src/libraries/nacl_io/mount_dev.cc
index 14acb6d02be66bba01173ee617ea7f6f00e2bb59..8fee68ac358027e73716ee9e3be3b784025de285 100644
--- a/native_client_sdk/src/libraries/nacl_io/mount_dev.cc
+++ b/native_client_sdk/src/libraries/nacl_io/mount_dev.cc
@@ -228,9 +228,6 @@ Error UrandomNode::Read(const HandleAttr& attr,
int error = (*random_interface_.get_random_bytes)(buf, count, &nread);
if (error)
return error;
-
- *out_bytes = count;
- return 0;
#elif defined(WIN32)
char* out = static_cast<char*>(buf);
size_t bytes_left = count;
@@ -247,10 +244,10 @@ Error UrandomNode::Read(const HandleAttr& attr,
out += bytes_to_copy;
bytes_left -= bytes_to_copy;
}
+#endif
*out_bytes = count;
return 0;
-#endif
}
Error UrandomNode::Write(const HandleAttr& attr,
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/library.dsc ('k') | native_client_sdk/src/libraries/nacl_io/mount_node_http.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698