From 0959971b93cbc40ae465cb58cee448eb6b9abe37 Mon Sep 17 00:00:00 2001 From: Sebastian Messmer Date: Mon, 7 Dec 2015 12:14:06 +0100 Subject: [PATCH] Adapt to new fspp interface --- src/filesystem/CryOpenFile.cpp | 2 +- src/filesystem/CryOpenFile.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/filesystem/CryOpenFile.cpp b/src/filesystem/CryOpenFile.cpp index bdbcca67..98d467c8 100644 --- a/src/filesystem/CryOpenFile.cpp +++ b/src/filesystem/CryOpenFile.cpp @@ -42,7 +42,7 @@ void CryOpenFile::truncate(off_t size) const { _fileBlob->resize(size); } -ssize_t CryOpenFile::read(void *buf, size_t count, off_t offset) const { +size_t CryOpenFile::read(void *buf, size_t count, off_t offset) const { _device->callFsActionCallbacks(); return _fileBlob->read(buf, offset, count); } diff --git a/src/filesystem/CryOpenFile.h b/src/filesystem/CryOpenFile.h index c25d6b2c..136f469a 100644 --- a/src/filesystem/CryOpenFile.h +++ b/src/filesystem/CryOpenFile.h @@ -15,7 +15,7 @@ public: void stat(struct ::stat *result) const override; void truncate(off_t size) const override; - ssize_t read(void *buf, size_t count, off_t offset) const override; + size_t read(void *buf, size_t count, off_t offset) const override; void write(const void *buf, size_t count, off_t offset) override; void flush() override; void fsync() override;