summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/DevPtsFS.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-08 11:58:28 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-08 11:58:28 +0100
commit42d41fdf947956af0dcbab46dbd316a38e7f6199 (patch)
tree3b7b763b11fd87bf263d169604977713c3cc4d00 /Kernel/FileSystem/DevPtsFS.h
parent2f82d4fb31af551deeb7955073d0f6bf69b33d2a (diff)
downloadserenity-42d41fdf947956af0dcbab46dbd316a38e7f6199.zip
Kernel: Simplify FS::create_inode() a little bit
Return a KResultOr<NonnullRefPtr<Inode>> instead of returning errors in an out-parameter.
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 a8ddc6cc58..725f45a267 100644
--- a/Kernel/FileSystem/DevPtsFS.h
+++ b/Kernel/FileSystem/DevPtsFS.h
@@ -42,7 +42,7 @@ public:
virtual const char* class_name() const override { return "DevPtsFS"; }
virtual InodeIdentifier root_inode() const override;
- virtual RefPtr<Inode> create_inode(InodeIdentifier parent_inode, const String& name, mode_t, off_t size, dev_t, uid_t, gid_t, int& error) override;
+ virtual KResultOr<NonnullRefPtr<Inode>> create_inode(InodeIdentifier parent_id, const String& name, mode_t, off_t size, dev_t, uid_t, gid_t) override;
virtual KResult create_directory(InodeIdentifier parent_inode, const String& name, mode_t, uid_t, gid_t) override;
virtual RefPtr<Inode> get_inode(InodeIdentifier) const override;