diff options
| author | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-07-04 23:53:20 +0200 |
|---|---|---|
| committer | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-07-04 23:53:56 +0200 |
| commit | 175296c1e85d2747fb4b1063199e933978320231 (patch) | |
| tree | 161659f9af65a0c37802630209ec2654cfec1659 /Drv | |
| parent | 16c2e132b39836a3e312f3bda7ee0e6de60d6dd9 (diff) | |
MHR-36: Running run_format.
Signed-off-by: Amlal EL Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Drv')
| -rw-r--r-- | Drv/Hello/Hello.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Drv/Hello/Hello.c b/Drv/Hello/Hello.c index ff62755c..ba3d9733 100644 --- a/Drv/Hello/Hello.c +++ b/Drv/Hello/Hello.c @@ -13,11 +13,10 @@ struct HelloMasterConfigHeaderInput; struct HelloMasterConfigHeaderInput { - size_t fSizeOfOutput; + size_t fSizeOfOutput; struct HelloMasterConfigHeader* fOutput; }; - /// @file Hello.c /// @brief Zero configuration protocol, a much more better protocol for zero configuration. @@ -28,15 +27,15 @@ typedef struct HelloMasterConfigHeader int64_t fMagic; int64_t fVersion; int64_t fSourceAddress; - size_t fDataLength; + size_t fDataLength; wchar_t fUTF16Data[cHMCHMaxDataLength]; } __attribute__((packed)) HelloMasterConfigHeader; #define cHMCHDeviceLen 255 -static kernelDeviceRef cDev = nil; -static char* cDeviceUUID = nil; // 3ed40738-c7d6-4b59-afdf-3c104b05fbf -static HelloMasterConfigHeader* cHeader = nil; +static kernelDeviceRef cDev = nil; +static char* cDeviceUUID = nil; // 3ed40738-c7d6-4b59-afdf-3c104b05fbf +static HelloMasterConfigHeader* cHeader = nil; /// @brief Link to master device to attribute DHCP lease. static void __hello_link_device(void* a0) @@ -66,13 +65,14 @@ static void __hello_link_device(void* a0) static void __hello_get_hmch(void* a0) { - if (a0 == nil) return; + if (a0 == nil) + return; kernelPrintStr("Hello: returning header...\r"); struct HelloMasterConfigHeaderInput* in = a0; - in->fOutput = cHeader; - in->fSizeOfOutput = sizeof(in->fOutput); + in->fOutput = cHeader; + in->fSizeOfOutput = sizeof(in->fOutput); } static void __hello_unlink_device(void* a0) |
