diff options
author | Andreas Kling <kling@serenityos.org> | 2021-11-18 15:11:31 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-18 21:11:30 +0100 |
commit | e08d213830f8459f0d0d20d56668d479479a444d (patch) | |
tree | b2380d13c7c7343d0c33fdc667e8ec3dfec5c41d /Kernel/GlobalProcessExposed.cpp | |
parent | 7c57961c61aada999bf1dbc871708546b4fe1ba9 (diff) | |
download | serenity-e08d213830f8459f0d0d20d56668d479479a444d.zip |
Kernel: Use DistinctNumeric for filesystem ID's
This patch adds the FileSystemID type, which is a distinct u32.
This prevents accidental conversion from arbitrary integers.
Diffstat (limited to 'Kernel/GlobalProcessExposed.cpp')
-rw-r--r-- | Kernel/GlobalProcessExposed.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/GlobalProcessExposed.cpp b/Kernel/GlobalProcessExposed.cpp index 3efb3d3a7c..2bed0a83ae 100644 --- a/Kernel/GlobalProcessExposed.cpp +++ b/Kernel/GlobalProcessExposed.cpp @@ -936,7 +936,7 @@ UNMAP_AFTER_INIT NonnullRefPtr<ProcFSRootDirectory> ProcFSRootDirectory::must_cr return directory; } -ErrorOr<void> ProcFSRootDirectory::traverse_as_directory(unsigned fsid, Function<ErrorOr<void>(FileSystem::DirectoryEntryView const&)> callback) const +ErrorOr<void> ProcFSRootDirectory::traverse_as_directory(FileSystemID fsid, Function<ErrorOr<void>(FileSystem::DirectoryEntryView const&)> callback) const { MutexLocker locker(ProcFSComponentRegistry::the().get_lock()); TRY(callback({ ".", { fsid, component_index() }, 0 })); |