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

Unified Diff: src/platform/update_engine/extent_writer.h

Issue 1599029: update engine: 32- and 64-bit compile (Closed)
Patch Set: int32->int32_t, PRIi64, 80 cols for review Created 10 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: src/platform/update_engine/extent_writer.h
diff --git a/src/platform/update_engine/extent_writer.h b/src/platform/update_engine/extent_writer.h
index cbb62fefeaff3fd50c81fb3bd756322cca18be61..898c55efa1543c67ce8967e118744b523ad46dc2 100644
--- a/src/platform/update_engine/extent_writer.h
+++ b/src/platform/update_engine/extent_writer.h
@@ -29,7 +29,7 @@ class ExtentWriter {
// Returns true on success.
virtual bool Init(int fd,
const std::vector<Extent>& extents,
- size_t block_size) = 0;
+ uint32 block_size) = 0;
Daniel Erat 2010/04/15 00:55:47 switch this to uint32_t
// Returns true on success.
virtual bool Write(const void* bytes, size_t count) = 0;
@@ -57,7 +57,7 @@ class DirectExtentWriter : public ExtentWriter {
next_extent_index_(0) {}
~DirectExtentWriter() {}
- bool Init(int fd, const std::vector<Extent>& extents, size_t block_size) {
+ bool Init(int fd, const std::vector<Extent>& extents, uint32 block_size) {
Daniel Erat 2010/04/15 00:55:47 this too
fd_ = fd;
block_size_ = block_size;
extents_ = extents;
@@ -92,7 +92,7 @@ class ZeroPadExtentWriter : public ExtentWriter {
bytes_written_mod_block_size_(0) {}
~ZeroPadExtentWriter() {}
- bool Init(int fd, const std::vector<Extent>& extents, size_t block_size) {
+ bool Init(int fd, const std::vector<Extent>& extents, uint32 block_size) {
Daniel Erat 2010/04/15 00:55:47 and this
block_size_ = block_size;
return underlying_extent_writer_->Init(fd, extents, block_size);
}

Powered by Google App Engine
This is Rietveld 408576698