summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-06 23:14:26 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-06 23:14:26 +0000
commite5b108a764a06714f31f74695e21a51b38833cdc (patch)
tree20774c3d42f139bbed3fa80f63b1bc952e8271fc /util
parent69c4d70650e8c3236444181f33cadc2f53d85bb8 (diff)
util/nvmutil: make invert a uint8_t
cleaner intention, and shorter Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util')
-rw-r--r--util/nvmutil/nvmutil.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index b0fc23f3..970d2e7c 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -38,7 +38,7 @@ static void open_dev_urandom(void);
#endif
static void xopen(int *fd, const char *path, int flags, struct stat *st);
static void read_gbe_file(void);
-static void read_gbe_file_part(size_t part, unsigned char invert);
+static void read_gbe_file_part(size_t part, uint8_t invert);
static void cmd_setmac(void);
static void parse_mac_string(void);
static void set_mac_byte(size_t mac_str_pos);
@@ -130,7 +130,7 @@ static int rfd = -1;
#endif
static int gbe_fd = -1;
static size_t part;
-static unsigned char invert;
+static uint8_t invert;
static unsigned char part_modified[2];
static const char *mac_str = NULL;
@@ -433,7 +433,7 @@ read_gbe_file(void)
}
static void
-read_gbe_file_part(size_t p, unsigned char invert)
+read_gbe_file_part(size_t p, uint8_t invert)
{
read_file_exact(gbe_fd, gbe_mem_offset(p ^ invert, "pread"),
GBE_PART_SIZE, gbe_file_offset(p, "pread"), fname, "pread");