summaryrefslogtreecommitdiff
path: root/Kernel/TTY/PTYMultiplexer.h
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2022-01-25 20:19:35 +0200
committerIdan Horowitz <idan.horowitz@gmail.com>2022-01-25 22:41:17 +0200
commit664ca58746041e412bb66fac5b638d8306c27262 (patch)
treed40c3de4fe622043f783960429a9c0eb43a2f969 /Kernel/TTY/PTYMultiplexer.h
parent9ce537d7036bf4aff61d4ce10e7fe0b134c122b3 (diff)
downloadserenity-664ca58746041e412bb66fac5b638d8306c27262.zip
Kernel: Use u64 instead of size_t for File::can_write offset
This ensures offsets will not be truncated on large files on i686.
Diffstat (limited to 'Kernel/TTY/PTYMultiplexer.h')
-rw-r--r--Kernel/TTY/PTYMultiplexer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/TTY/PTYMultiplexer.h b/Kernel/TTY/PTYMultiplexer.h
index e3c395d32f..caac7b0fdd 100644
--- a/Kernel/TTY/PTYMultiplexer.h
+++ b/Kernel/TTY/PTYMultiplexer.h
@@ -27,7 +27,7 @@ public:
virtual ErrorOr<size_t> read(OpenFileDescription&, u64, UserOrKernelBuffer&, size_t) override { return 0; }
virtual ErrorOr<size_t> write(OpenFileDescription&, u64, const UserOrKernelBuffer&, size_t) override { return 0; }
virtual bool can_read(const OpenFileDescription&, u64) const override { return true; }
- virtual bool can_write(const OpenFileDescription&, size_t) const override { return true; }
+ virtual bool can_write(const OpenFileDescription&, u64) const override { return true; }
void notify_master_destroyed(Badge<MasterPTY>, unsigned index);