Index: src/platform/update_engine/file_writer.cc |
diff --git a/src/platform/update_engine/file_writer.cc b/src/platform/update_engine/file_writer.cc |
index 07bdb464381b28ecb8d38aece8c8a71ae1ec3894..1a95a757fac2abab661220b90bbba13c8f81c2da 100644 |
--- a/src/platform/update_engine/file_writer.cc |
+++ b/src/platform/update_engine/file_writer.cc |
@@ -15,7 +15,7 @@ int DirectFileWriter::Open(const char* path, int flags, mode_t mode) { |
return 0; |
} |
-int DirectFileWriter::Write(const void* bytes, size_t count) { |
+ssize_t DirectFileWriter::Write(const void* bytes, size_t count) { |
CHECK_GE(fd_, 0); |
const char* char_bytes = reinterpret_cast<const char*>(bytes); |