1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-29 11:52:07 +00:00

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
parent a91a49337c
commit 1ae8775a1b
5 changed files with 10 additions and 10 deletions

View file

@ -20,7 +20,7 @@ HashMap<uid_t, String> ProcessStatisticsReader::s_usernames;
Optional<HashMap<pid_t, Core::ProcessStatistics>> ProcessStatisticsReader::get_all(RefPtr<Core::File>& proc_all_file)
{
if (proc_all_file) {
if (!proc_all_file->seek(0, Core::File::SeekMode::SetPosition)) {
if (!proc_all_file->seek(0, Core::SeekMode::SetPosition)) {
fprintf(stderr, "ProcessStatisticsReader: Failed to refresh /proc/all: %s\n", proc_all_file->error_string());
return {};
}