mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 06:38:10 +00:00
Kernel: Rename Custody::create() => try_create()
The try_ prefix indicates that this may fail. :^)
This commit is contained in:
parent
9a827ad3da
commit
9d801d2345
5 changed files with 18 additions and 19 deletions
|
@ -1537,7 +1537,7 @@ KResultOr<NonnullRefPtr<Custody>> ProcFSInode::resolve_as_link(Custody& base, Re
|
|||
if (!description)
|
||||
return ENOENT;
|
||||
auto proxy_inode = ProcFSProxyInode::create(const_cast<ProcFS&>(fs()), *description);
|
||||
return Custody::create(&base, "", proxy_inode, base.mount_flags());
|
||||
return Custody::try_create(&base, "", proxy_inode, base.mount_flags());
|
||||
}
|
||||
|
||||
Custody* res = nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue