From: Lennart Poettering Date: Fri, 20 Dec 2024 11:04:18 +0000 (+0100) Subject: chid-fundamental: use right type to iterate through smbios fields X-Git-Tag: v258-rc1~1796^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=094e2ace12a3cba990dab2768915641e71fbf7a4;p=thirdparty%2Fsystemd.git chid-fundamental: use right type to iterate through smbios fields --- diff --git a/src/fundamental/chid-fundamental.c b/src/fundamental/chid-fundamental.c index 4e2b229bd7b..8a18df3335f 100644 --- a/src/fundamental/chid-fundamental.c +++ b/src/fundamental/chid-fundamental.c @@ -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;