summaryrefslogtreecommitdiff
path: root/Kernel/Devices
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-05-03 20:42:43 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-05-03 20:42:43 +0200
commit2470fdcd9b75a0b2bf2ac025b7030a7f53c8ac89 (patch)
treedcc5a6952be81dffba3f6f152488f373d477bcd4 /Kernel/Devices
parent03da7046bda1c2ff67305a8d9eb178d69dac46f8 (diff)
downloadserenity-2470fdcd9b75a0b2bf2ac025b7030a7f53c8ac89.zip
Kernel: Make Socket inherit from File.
Diffstat (limited to 'Kernel/Devices')
-rw-r--r--Kernel/Devices/Device.cpp2
-rw-r--r--Kernel/Devices/Device.h2
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; }