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. |