LibCore+Everywhere: Move SeekMode out of IODevice

This commit is contained in:
Ali Mohammad Pur 2021-05-12 14:01:34 +04:30 committed by Linus Groh
commit 1ae8775a1b
Notes: sideshowbarker 2024-07-18 18:18:30 +09:00
5 changed files with 10 additions and 10 deletions

View file

@ -47,7 +47,7 @@ static off_t find_seek_pos(Core::File& file, int wanted_lines)
// Rather than reading the whole file, start at the end and work backwards,
// stopping when we've found the number of lines we want.
off_t pos = 0;
if (!file.seek(0, Core::IODevice::SeekMode::FromEndPosition, &pos)) {
if (!file.seek(0, Core::SeekMode::FromEndPosition, &pos)) {
fprintf(stderr, "Failed to find end of file: %s\n", file.error_string());
return 1;
}