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
Notes: sideshowbarker 2024-07-18 18:18:30 +09:00
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 {};
}