]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
chid-fundamental: use right type to iterate through smbios fields
authorLennart Poettering <lennart@poettering.net>
Fri, 20 Dec 2024 11:04:18 +0000 (12:04 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 20 Dec 2024 17:06:34 +0000 (18:06 +0100)
src/fundamental/chid-fundamental.c

index 4e2b229bd7bf6a3ee6b89a5da1363f091bc33659..8a18df3335fccaf814f2bf83ddd044b281726341 100644 (file)
@@ -42,7 +42,7 @@ static void get_chid(
         static const EFI_GUID namespace = { UINT32_C(0x12d8ff70), UINT16_C(0x7f4c), UINT16_C(0x7d4c), {} }; /* Swapped to BE */
         sha1_process_bytes(&namespace, sizeof(namespace), &ctx);
 
-        for (unsigned i = 0; i < _CHID_SMBIOS_FIELDS_MAX; i++) {
+        for (ChidSmbiosFields i = 0; i < _CHID_SMBIOS_FIELDS_MAX; i++) {
                 if (!((mask >> i) & 1))
                         continue;