diff options
Diffstat (limited to 'src/inputs/InputFile.cpp')
-rw-r--r-- | src/inputs/InputFile.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/inputs/InputFile.cpp b/src/inputs/InputFile.cpp index 58c3ada..da45456 100644 --- a/src/inputs/InputFile.cpp +++ b/src/inputs/InputFile.cpp @@ -42,14 +42,15 @@ int InputFile::Open() { - this->file = open(this->filename.c_str(), O_RDONLY | O_BINARY); + this->file = open(this->m_filename.c_str(), O_RDONLY | O_BINARY); if (this->file == -1) { - perror(filename.c_str()); + perror(m_filename.c_str()); return -1; } return 0; } +#if 0 /** * This function replace the read function by trying many times a reading. * It tries to read until all bytes are read. Very useful when reading from a @@ -85,7 +86,7 @@ long InputFile::ReadData(void* data, size_t size, unsigned int tries) offset += result; return offset; } - +#endif int InputFile::Rewind() |