util/nvmutil: fix non-portable variable declaration

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-12 13:22:30 +00:00
parent 1184dcb05c
commit 87b74aadbc
+2 -1
View File
@@ -1052,9 +1052,10 @@ static void
print_mac_from_nvm(size_t partnum)
{
size_t c;
uint16_t val16;
for (c = 0; c < 3; c++) {
uint16_t val16 = nvm_word(c, partnum);
val16 = nvm_word(c, partnum);
printf("%02x:%02x", val16 & 0xff, val16 >> 8);
if (c == 2)
printf("\n");