summaryrefslogtreecommitdiff
path: root/Kernel/BXVGADevice.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-02-25 21:19:57 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-02-25 21:21:12 +0100
commitbeda4788216509fdf846e5bb6f6000b8b542ca11 (patch)
treeb7ed890f13d5c1629b434fa202b4f1ca9a232c50 /Kernel/BXVGADevice.h
parent5af4e622b94a194e3feaea1b3b09229d7a93578b (diff)
downloadserenity-beda4788216509fdf846e5bb6f6000b8b542ca11.zip
Kernel: Make syscalls that take a buffer size use ssize_t instead of size_t.
Dealing with the unsigned overflow propagation here just seems unreasonably error prone. Let's limit ourselves to 2GB buffer sizes instead.
Diffstat (limited to 'Kernel/BXVGADevice.h')
-rw-r--r--Kernel/BXVGADevice.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/BXVGADevice.h b/Kernel/BXVGADevice.h
index a1d9375d38..212ce6a963 100644
--- a/Kernel/BXVGADevice.h
+++ b/Kernel/BXVGADevice.h
@@ -27,8 +27,8 @@ private:
virtual const char* class_name() const override { return "BXVGA"; }
virtual bool can_read(Process&) const override;
virtual bool can_write(Process&) const override;
- virtual ssize_t read(Process&, byte*, size_t) override;
- virtual ssize_t write(Process&, const byte*, size_t) override;
+ virtual ssize_t read(Process&, byte*, ssize_t) override;
+ virtual ssize_t write(Process&, const byte*, ssize_t) override;
void set_register(word index, word value);
dword find_framebuffer_address();