summaryrefslogtreecommitdiff
path: root/Kernel/PTYMultiplexer.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-01-19 22:53:05 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-01-19 22:53:05 +0100
commitb75ee4aacbf41539d73f494da5aba468310b71b9 (patch)
treed1b08cf427353e919d378afc9e1f6158aca9e1b7 /Kernel/PTYMultiplexer.cpp
parentb413e234e194f36b4866dd6554a8f2a94ac96b1e (diff)
downloadserenity-b75ee4aacbf41539d73f494da5aba468310b71b9.zip
Coding style fixes in AK.
Diffstat (limited to 'Kernel/PTYMultiplexer.cpp')
-rw-r--r--Kernel/PTYMultiplexer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/PTYMultiplexer.cpp b/Kernel/PTYMultiplexer.cpp
index 26403e898c..33a1e3cc0f 100644
--- a/Kernel/PTYMultiplexer.cpp
+++ b/Kernel/PTYMultiplexer.cpp
@@ -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);
}