summaryrefslogtreecommitdiff
path: root/Kernel/TTY/MasterPTY.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-05-23 13:17:58 +0200
committerAndreas Kling <kling@serenityos.org>2020-05-23 15:25:43 +0200
commitb3736c1b1e8c1cd0263515c79aa323de1aae07ed (patch)
tree861cfcf93fc5f8503c10ebcb1a0f3f55b6dabdb5 /Kernel/TTY/MasterPTY.h
parentb8af5cd8da74645945c8ab7b63846f051c185f50 (diff)
downloadserenity-b3736c1b1e8c1cd0263515c79aa323de1aae07ed.zip
Kernel: Use a FlatPtr for the "argument" to ioctl()
Since it's often used to pass pointers, it should really be a FlatPtr.
Diffstat (limited to 'Kernel/TTY/MasterPTY.h')
-rw-r--r--Kernel/TTY/MasterPTY.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/TTY/MasterPTY.h b/Kernel/TTY/MasterPTY.h
index 6fc5970b01..0dfc641d83 100644
--- a/Kernel/TTY/MasterPTY.h
+++ b/Kernel/TTY/MasterPTY.h
@@ -56,7 +56,7 @@ private:
virtual bool can_write(const FileDescription&, size_t) const override;
virtual void close() override;
virtual bool is_master_pty() const override { return true; }
- virtual int ioctl(FileDescription&, unsigned request, unsigned arg) override;
+ virtual int ioctl(FileDescription&, unsigned request, FlatPtr arg) override;
virtual const char* class_name() const override { return "MasterPTY"; }
RefPtr<SlavePTY> m_slave;