From 4d8aebaf35561d2b337f863aa468bef6bd83b2d3 Mon Sep 17 00:00:00 2001 From: superp00t Date: Mon, 14 Aug 2023 19:27:26 -0400 Subject: [PATCH] fix(system/file): clarify intention to call System_File::Read/Write instead of File::Read/File::Write (same arguments) --- bc/system/file/posix/System_File.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bc/system/file/posix/System_File.cpp b/bc/system/file/posix/System_File.cpp index 544ed8b..f040868 100644 --- a/bc/system/file/posix/System_File.cpp +++ b/bc/system/file/posix/System_File.cpp @@ -382,12 +382,12 @@ bool Read(File::StreamRecord* file, void* data, int64_t offset, size_t* bytes) { // parms->size also stores the result of how many bytes were actually read bool Read(File::Filesystem* fs, Stacked::FileParms* parms) { // Position is negative, so actual write position is the current seek offset of the fd. - return Read(parms->stream, parms->param, -1, &parms->size); + return System_File::Read(parms->stream, parms->param, -1, &parms->size); } // Specify a file position when reading from a file bool ReadP(File::Filesystem* fs, Stacked::FileParms* parms) { - return Read(parms->stream, parms->param, parms->position, &parms->size); + return System_File::Read(parms->stream, parms->param, parms->position, &parms->size); } // Remove an directory