diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-05-03 20:42:43 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-05-03 20:42:43 +0200 |
commit | 2470fdcd9b75a0b2bf2ac025b7030a7f53c8ac89 (patch) | |
tree | dcc5a6952be81dffba3f6f152488f373d477bcd4 /Kernel/Devices | |
parent | 03da7046bda1c2ff67305a8d9eb178d69dac46f8 (diff) | |
download | serenity-2470fdcd9b75a0b2bf2ac025b7030a7f53c8ac89.zip |
Kernel: Make Socket inherit from File.
Diffstat (limited to 'Kernel/Devices')
-rw-r--r-- | Kernel/Devices/Device.cpp | 2 | ||||
-rw-r--r-- | Kernel/Devices/Device.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Devices/Device.cpp b/Kernel/Devices/Device.cpp index 4fbf493ee5..ba7f28dadd 100644 --- a/Kernel/Devices/Device.cpp +++ b/Kernel/Devices/Device.cpp @@ -14,7 +14,7 @@ Device::~Device() VFS::the().unregister_device(*this); } -String Device::absolute_path() const +String Device::absolute_path(FileDescriptor&) const { return String::format("device:%u,%u (%s)", m_major, m_minor, class_name()); } diff --git a/Kernel/Devices/Device.h b/Kernel/Devices/Device.h index cc8d70066e..ce0b407aa7 100644 --- a/Kernel/Devices/Device.h +++ b/Kernel/Devices/Device.h @@ -43,7 +43,7 @@ public: unsigned major() const { return m_major; } unsigned minor() const { return m_minor; } - virtual String absolute_path() const override; + virtual String absolute_path(FileDescriptor&) const override; uid_t uid() const { return m_uid; } uid_t gid() const { return m_gid; } |