diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-01-16 00:20:38 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-01-16 00:20:38 +0100 |
commit | bd3e77cc167bbbaf294c2309511f42315ee6ad6a (patch) | |
tree | d21e3b87b7648cba129c09490b6fd87342593959 /Kernel/MasterPTY.cpp | |
parent | 08bfe518f909bcf0c241d910da16754cf97c4078 (diff) | |
download | serenity-bd3e77cc167bbbaf294c2309511f42315ee6ad6a.zip |
Pass the process to CharacterDevice::read/write.
This is much nicer than grabbing directly at 'current' inside a read().
Diffstat (limited to 'Kernel/MasterPTY.cpp')
-rw-r--r-- | Kernel/MasterPTY.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/MasterPTY.cpp b/Kernel/MasterPTY.cpp index af1fd38227..138d9bc5b0 100644 --- a/Kernel/MasterPTY.cpp +++ b/Kernel/MasterPTY.cpp @@ -20,12 +20,12 @@ String MasterPTY::pts_name() const return buffer; } -ssize_t MasterPTY::read(byte* buffer, size_t size) +ssize_t MasterPTY::read(Process&, byte* buffer, size_t size) { return m_buffer.read(buffer, size); } -ssize_t MasterPTY::write(const byte* buffer, size_t size) +ssize_t MasterPTY::write(Process&, const byte* buffer, size_t size) { m_slave->on_master_write(buffer, size); return size; |