mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:38:12 +00:00
Kernel: Declare Device major and minor data member numbers as const
This is just another "safety guard" to ensure these numbers don't ever change after being set for a certain Device at construction time.
This commit is contained in:
parent
7334636933
commit
231b9f256b
1 changed files with 2 additions and 2 deletions
|
@ -68,8 +68,8 @@ protected:
|
|||
void set_gid(GroupID gid) { m_gid = gid; }
|
||||
|
||||
private:
|
||||
MajorNumber m_major { 0 };
|
||||
MinorNumber m_minor { 0 };
|
||||
MajorNumber const m_major { 0 };
|
||||
MinorNumber const m_minor { 0 };
|
||||
UserID m_uid { 0 };
|
||||
GroupID m_gid { 0 };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue