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/Console.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/Console.cpp')
-rw-r--r-- | Kernel/Console.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Console.cpp b/Kernel/Console.cpp index eece98ac26..4dbd2df5b4 100644 --- a/Kernel/Console.cpp +++ b/Kernel/Console.cpp @@ -28,14 +28,14 @@ bool Console::can_read(Process&) const return false; } -ssize_t Console::read(byte*, size_t) +ssize_t Console::read(Process&, byte*, size_t) { // FIXME: Implement reading from the console. // Maybe we could use a ring buffer for this device? return 0; } -ssize_t Console::write(const byte* data, size_t size) +ssize_t Console::write(Process&, const byte* data, size_t size) { if (!size) return 0; |