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

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

Issue 269593011: [NaCl SDK] Modifying size_t and int to off_t. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Place __STDC_FORMAT_MACROS inside conditional block Created 6 years, 8 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 8f56e6786590f37358b991197f7deb1e5f7227e1..9ad4605231baababfa426c852e75a69e7c17bd82 100644
--- a/native_client_sdk/src/libraries/nacl_io/kernel_handle.cc
+++ b/native_client_sdk/src/libraries/nacl_io/kernel_handle.cc
@@ -54,8 +54,8 @@ Error KernelHandle::Init(int open_flags) {
Error KernelHandle::Seek(off_t offset, int whence, off_t* out_offset) {
// By default, don't move the offset.
*out_offset = offset;
- ssize_t base;
- size_t node_size;
+ off_t base;
+ off_t node_size;
AUTO_LOCK(handle_lock_);
Error error = node_->GetSize(&node_size);
@@ -79,7 +79,7 @@ Error KernelHandle::Seek(off_t offset, int whence, off_t* out_offset) {
if (base + offset < 0)
return EINVAL;
- size_t new_offset = base + offset;
+ off_t new_offset = base + offset;
// Seeking past the end of the file will zero out the space between the old
// end and the new end.
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/kernel_handle.h ('k') | native_client_sdk/src/libraries/nacl_io/node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698