Revert "util/nvmutil: make invert an unsigned char"

This reverts commit 5b120d71e7.

the others are unsigned char. other variables like this one.

better be consistent.

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-06 20:57:39 +00:00
parent 10c8be92aa
commit af55dd8959
+3 -3
View File
@@ -37,7 +37,7 @@ static void open_dev_urandom(void);
#endif
static void xopen(int *, const char *, int, struct stat *);
static void read_gbe(void);
static void read_gbe_part(size_t, int);
static void read_gbe_part(size_t, unsigned char);
static void cmd_setmac(void);
static void parse_mac_string(void);
static void set_mac_byte(size_t);
@@ -127,7 +127,7 @@ static int rfd = -1;
static int fd = -1;
static struct stat st;
static size_t part;
static int invert;
static unsigned char invert;
static unsigned char part_modified[2];
static const char *mac_str = NULL;
@@ -400,7 +400,7 @@ read_gbe(void)
}
static void
read_gbe_part(size_t p, int invert)
read_gbe_part(size_t p, unsigned char invert)
{
read_file_exact(fd, gbe_mem_offset(p ^ invert, "pread"),
GBE_PART_SIZE, gbe_file_offset(p, "pread"), fname, "pread");