mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:28:10 +00:00
Kernel: Rename FileDescription::create() => try_create()
This commit is contained in:
parent
31bc9565f8
commit
59335bd8ea
11 changed files with 16 additions and 16 deletions
|
@ -46,7 +46,7 @@ KResultOr<NonnullRefPtr<FileDescription>> PTYMultiplexer::open(int options)
|
|||
if (!master)
|
||||
return ENOMEM;
|
||||
dbgln_if(PTMX_DEBUG, "PTYMultiplexer::open: Vending master {}", master->index());
|
||||
auto description = FileDescription::create(*master);
|
||||
auto description = FileDescription::try_create(*master);
|
||||
if (!description.is_error()) {
|
||||
description.value()->set_rw_mode(options);
|
||||
description.value()->set_file_flags(options);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue