mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:04:57 +00:00
LibCore+Everywhere: Move SeekMode out of IODevice
This commit is contained in:
parent
a91a49337c
commit
1ae8775a1b
5 changed files with 10 additions and 10 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue