diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-06 19:59:51 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-06 19:59:51 +0000 |
| commit | 5b120d71e713ea490bab7e90e21207cb16587779 (patch) | |
| tree | 4ad956b6e729fec928819211f0955758552b04bb /util | |
| parent | 4bf190a5f5bca194f4ff71d02a5f3a17712204b7 (diff) | |
util/nvmutil: make invert an unsigned char
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util')
| -rw-r--r-- | util/nvmutil/nvmutil.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index b99f3a81..ec918b3c 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -20,7 +20,7 @@ static void set_io_flags(int, char **); static void open_files(void); 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); @@ -124,7 +124,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 = NULL; @@ -368,7 +368,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_PERFECTLY_or_die(fd, gbe_mem_offset(p ^ invert, "pread"), GBE_PART_SIZE, gbe_file_offset(p, "pread"), fname, "pread"); |
