diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-12 13:22:30 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-12 13:22:30 +0000 |
| commit | 87b74aadbcb2153403a7d164c7b204b9ed386edf (patch) | |
| tree | 6754b5afc0be8d11cce0bc2caa5a3a32c0557a23 | |
| parent | 1184dcb05c9923936c121ee2ad61ea966bc562ea (diff) | |
util/nvmutil: fix non-portable variable declaration
Signed-off-by: Leah Rowe <leah@libreboot.org>
| -rw-r--r-- | util/nvmutil/nvmutil.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index 475e0a7e..0ea2ad19 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -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"); |
