diff --git a/Kernel/ProcessExposed.h b/Kernel/ProcessExposed.h index 0311e26770f..d4cff9b8f1d 100644 --- a/Kernel/ProcessExposed.h +++ b/Kernel/ProcessExposed.h @@ -79,7 +79,7 @@ public: virtual NonnullRefPtr to_inode(const ProcFS& procfs_instance) const; - size_t component_index() const { return m_component_index; }; + InodeIndex component_index() const { return m_component_index; }; virtual ~ProcFSExposedComponent() = default; @@ -89,7 +89,7 @@ protected: private: OwnPtr m_name; - size_t m_component_index; + InodeIndex m_component_index {}; }; class ProcFSExposedFolder : public ProcFSExposedComponent { diff --git a/Kernel/SystemExposed.h b/Kernel/SystemExposed.h index 6ef0f293056..3347bedf184 100644 --- a/Kernel/SystemExposed.h +++ b/Kernel/SystemExposed.h @@ -31,7 +31,7 @@ public: virtual NonnullRefPtr to_inode(const SysFS& sysfs_instance) const; - size_t component_index() const { return m_component_index; }; + InodeIndex component_index() const { return m_component_index; }; virtual ~SystemExposedComponent() = default; @@ -40,7 +40,7 @@ protected: private: NonnullOwnPtr m_name; - size_t m_component_index; + InodeIndex m_component_index {}; }; class SystemExposedFolder : public SystemExposedComponent {