From af55dd895936cf56982e75b7878a5e435b74ef99 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Fri, 6 Mar 2026 20:57:39 +0000 Subject: 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 --- util/nvmutil/nvmutil.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'util/nvmutil') 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"); -- cgit v1.2.1