mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:48:11 +00:00
Kernel: Make major and minor numbers to be DistinctNumerics
This helps avoid confusion in general, and make constructors, methods and code patterns much more clean and understandable.
This commit is contained in:
parent
6d14940053
commit
9eb08bdb0f
24 changed files with 70 additions and 52 deletions
|
@ -681,8 +681,8 @@ private:
|
|||
JsonArraySerializer array { builder };
|
||||
DeviceManagement::the().for_each([&array](auto& device) {
|
||||
auto obj = array.add_object();
|
||||
obj.add("major", device.major());
|
||||
obj.add("minor", device.minor());
|
||||
obj.add("major", device.major().value());
|
||||
obj.add("minor", device.minor().value());
|
||||
obj.add("class_name", device.class_name());
|
||||
|
||||
if (device.is_block_device())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue