mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
util/nvmutil: fix non-portable variable declaration
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user