summaryrefslogtreecommitdiff
path: root/Kernel/TTY/SlavePTY.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-06-13 22:03:04 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-06-13 22:03:04 +0200
commitc1bbd40b9e7fa2fbb5051993e729054cb54548ab (patch)
tree306c75408427e5bade9e41fbb2335c4da48adb3a /Kernel/TTY/SlavePTY.cpp
parent1c5677032a948073a91078e57d4d7d4ae4712d36 (diff)
downloadserenity-c1bbd40b9e7fa2fbb5051993e729054cb54548ab.zip
Kernel: Rename "descriptor" to "description" where appropriate.
Now that FileDescription is called that, variables of that type should not be called "descriptor". This is kinda wordy but we'll get used to it.
Diffstat (limited to 'Kernel/TTY/SlavePTY.cpp')
-rw-r--r--Kernel/TTY/SlavePTY.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Kernel/TTY/SlavePTY.cpp b/Kernel/TTY/SlavePTY.cpp
index 102a7ee48a..2773db17a8 100644
--- a/Kernel/TTY/SlavePTY.cpp
+++ b/Kernel/TTY/SlavePTY.cpp
@@ -46,18 +46,18 @@ bool SlavePTY::can_write(FileDescription&) const
return m_master->can_write_from_slave();
}
-bool SlavePTY::can_read(FileDescription& descriptor) const
+bool SlavePTY::can_read(FileDescription& description) const
{
if (m_master->is_closed())
return true;
- return TTY::can_read(descriptor);
+ return TTY::can_read(description);
}
-ssize_t SlavePTY::read(FileDescription& descriptor, byte* buffer, ssize_t size)
+ssize_t SlavePTY::read(FileDescription& description, byte* buffer, ssize_t size)
{
if (m_master->is_closed())
return 0;
- return TTY::read(descriptor, buffer, size);
+ return TTY::read(description, buffer, size);
}
void SlavePTY::close()