mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 15:49:11 +00:00
LibCore+Everywhere: Move SeekMode out of IODevice
This commit is contained in:
parent
a91a49337c
commit
1ae8775a1b
Notes:
sideshowbarker
2024-07-18 18:18:30 +09:00
Author: https://github.com/alimpfard
Commit: 1ae8775a1b
Pull-request: https://github.com/SerenityOS/serenity/pull/7056
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