diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-06 20:57:39 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-06 20:58:04 +0000 |
| commit | af55dd895936cf56982e75b7878a5e435b74ef99 (patch) | |
| tree | b865171cd1ff3d471da6ff6055229d01ccbf1374 /util/nvmutil | |
| parent | 10c8be92aa6e349b8931a830de039fc9c2eb5079 (diff) | |
Revert "util/nvmutil: make invert an unsigned char"
This reverts commit 5b120d71e713ea490bab7e90e21207cb16587779.
the others are unsigned char. other variables like this one.
better be consistent.
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil')
| -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 744ec4fd..d58eb862 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -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"); |
