mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 19:38:12 +00:00
Kernel: Add distinct InodeIndex type
Use the DistinctNumeric mechanism to make InodeIndex a strongly typed integer type.
This commit is contained in:
parent
c8a90a31b6
commit
e44c1792a7
17 changed files with 63 additions and 56 deletions
|
@ -62,7 +62,7 @@ void TmpFS::register_inode(TmpFSInode& inode)
|
|||
LOCKER(m_lock);
|
||||
ASSERT(inode.identifier().fsid() == fsid());
|
||||
|
||||
unsigned index = inode.identifier().index();
|
||||
auto index = inode.identifier().index();
|
||||
m_inodes.set(index, inode);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue