mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:58:11 +00:00
Kernel: Use KResult in link().
This commit is contained in:
parent
5b27f11b97
commit
60d0a48be5
10 changed files with 41 additions and 54 deletions
|
@ -1047,13 +1047,12 @@ ssize_t ProcFSInode::write_bytes(off_t offset, ssize_t size, const byte* buffer,
|
|||
return 0;
|
||||
}
|
||||
|
||||
bool ProcFSInode::add_child(InodeIdentifier child_id, const String& name, byte file_type, int& error)
|
||||
KResult ProcFSInode::add_child(InodeIdentifier child_id, const String& name, byte file_type)
|
||||
{
|
||||
(void)child_id;
|
||||
(void)name;
|
||||
(void)file_type;
|
||||
error = -EPERM;
|
||||
return false;
|
||||
return KResult(-EPERM);
|
||||
}
|
||||
|
||||
KResult ProcFSInode::remove_child(const String& name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue