summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/DevPtsFS.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-09-05 18:55:55 +0200
committerAndreas Kling <kling@serenityos.org>2021-09-05 18:55:55 +0200
commitcaaeae9607ac45db4d28f952e509ce2a4b1270eb (patch)
treedfaae8fb06993976abcad478df9a1c1dcbe7ddac /Kernel/FileSystem/DevPtsFS.h
parent12d9a6c1fa31852d9269630cd7a3c0c5e6f4cc16 (diff)
downloadserenity-caaeae9607ac45db4d28f952e509ce2a4b1270eb.zip
Kernel: Make FileSystem::get_inode() return KResultOr<NRP<Inode>>
This allows for natural error propagation in a bunch of new places.
Diffstat (limited to 'Kernel/FileSystem/DevPtsFS.h')
-rw-r--r--Kernel/FileSystem/DevPtsFS.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/FileSystem/DevPtsFS.h b/Kernel/FileSystem/DevPtsFS.h
index 5e82671274..801e42f699 100644
--- a/Kernel/FileSystem/DevPtsFS.h
+++ b/Kernel/FileSystem/DevPtsFS.h
@@ -29,7 +29,7 @@ public:
private:
DevPtsFS();
- RefPtr<Inode> get_inode(InodeIdentifier) const;
+ KResultOr<NonnullRefPtr<Inode>> get_inode(InodeIdentifier) const;
RefPtr<DevPtsFSInode> m_root_inode;
};