summaryrefslogtreecommitdiff
path: root/Kernel/SyntheticFileSystem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/SyntheticFileSystem.cpp')
-rw-r--r--Kernel/SyntheticFileSystem.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/Kernel/SyntheticFileSystem.cpp b/Kernel/SyntheticFileSystem.cpp
index 1ed6e6eb50..bfdf6a8c8e 100644
--- a/Kernel/SyntheticFileSystem.cpp
+++ b/Kernel/SyntheticFileSystem.cpp
@@ -311,8 +311,7 @@ size_t SynthFSInode::directory_entry_count() const
return m_children.size() + 2;
}
-bool SynthFSInode::chmod(mode_t, int& error)
+KResult SynthFSInode::chmod(mode_t)
{
- error = -EPERM;
- return false;
+ return KResult(-EPERM);
}