diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-17 16:41:51 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-17 16:41:51 +0100 |
| commit | 31a2d2897b213eb37fe5b1d94fd096deaae7b2c2 (patch) | |
| tree | 2ac3c95db59ea825cb7639ba7e8f589a090ae902 /dev/kernel/src/GUIDWizard.cc | |
| parent | 062c4bb508bf6ec7334d374fef2e0e10623b2df9 (diff) | |
| parent | 00b182203540d6632f87700aad501faccbf2394d (diff) | |
Merge pull request #70 from nekernel-org/dev
dev: kernel_task_scheduler & ne_launch
Diffstat (limited to 'dev/kernel/src/GUIDWizard.cc')
| -rw-r--r-- | dev/kernel/src/GUIDWizard.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/dev/kernel/src/GUIDWizard.cc b/dev/kernel/src/GUIDWizard.cc index 81bf3293..e4608497 100644 --- a/dev/kernel/src/GUIDWizard.cc +++ b/dev/kernel/src/GUIDWizard.cc @@ -13,9 +13,9 @@ #include <NeKit/Ref.h> // begin of ascii 'readable' characters. (A, C, C, 1, 2) -#define kUUIDAsciiBegin 47 +#define kGUIDAsciiBegin 47 // @brief Size of UUID. -#define kUUIDSize 37 +#define kGUIDSize 37 namespace Kernel::CF::XRN::Version1 { auto cf_make_sequence(const ArrayList<UInt32>& uuidSeq) -> Ref<GUIDSequence*> { @@ -44,18 +44,18 @@ auto cf_make_sequence(const ArrayList<UInt32>& uuidSeq) -> Ref<GUIDSequence*> { // @brief Tries to make a guid out of a string. // This function is not complete for now auto cf_try_guid_to_string(Ref<GUIDSequence*>& seq) -> ErrorOr<Ref<KString>> { - Char buf[kUUIDSize]; + Char buf[kGUIDSize]; for (SizeT index = 0; index < 16; ++index) { - buf[index] = seq.Leak()->fU8[index] + kUUIDAsciiBegin; + buf[index] = seq.Leak()->fU8[index] + kGUIDAsciiBegin; } for (SizeT index = 16; index < 24; ++index) { - buf[index] = seq.Leak()->fU16[index] + kUUIDAsciiBegin; + buf[index] = seq.Leak()->fU16[index] + kGUIDAsciiBegin; } for (SizeT index = 24; index < 28; ++index) { - buf[index] = seq.Leak()->fU32[index] + kUUIDAsciiBegin; + buf[index] = seq.Leak()->fU32[index] + kGUIDAsciiBegin; } auto view = KStringBuilder::Construct(buf); |
