mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 09:24:57 +00:00
Coding style fixes in AK.
This commit is contained in:
parent
b413e234e1
commit
b75ee4aacb
12 changed files with 126 additions and 126 deletions
|
@ -5,7 +5,7 @@
|
|||
PTYMultiplexer::PTYMultiplexer()
|
||||
: CharacterDevice(5, 2)
|
||||
{
|
||||
m_freelist.ensureCapacity(4);
|
||||
m_freelist.ensure_capacity(4);
|
||||
for (int i = 4; i > 0; --i)
|
||||
m_freelist.unchecked_append(adopt(*new MasterPTY(i - 1)));
|
||||
}
|
||||
|
@ -21,7 +21,7 @@ RetainPtr<FileDescriptor> PTYMultiplexer::open(int& error, int options)
|
|||
error = -EBUSY;
|
||||
return nullptr;
|
||||
}
|
||||
auto master = m_freelist.takeLast();
|
||||
auto master = m_freelist.take_last();
|
||||
dbgprintf("PTYMultiplexer::open: Vending master %u\n", master->index());
|
||||
return VFS::the().open(move(master), error, options);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue