From ed321086133b474d1676ab7a54d52f7a9a5c9939 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Fri, 6 Mar 2026 21:22:50 +0000 Subject: util/nvmutil: rename global st variable rename it to gbe_st, for clarity Signed-off-by: Leah Rowe --- util/nvmutil/nvmutil.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'util/nvmutil/nvmutil.c') diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index 27bf4c66..d1efed68 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -126,7 +126,7 @@ static int flags; static int rfd = -1; #endif static int fd = -1; -static struct stat st; +static struct stat gbe_st; static size_t part; static unsigned char invert; static unsigned char part_modified[2]; @@ -339,13 +339,13 @@ open_dev_urandom(void) static void open_gbe_file(void) { - xopen(&fd, fname, flags, &st); + xopen(&fd, fname, flags, &gbe_st); - switch(st.st_size) { + switch(gbe_st.st_size) { case SIZE_8KB: case SIZE_16KB: case SIZE_128KB: - partsize = st.st_size >> 1; + partsize = gbe_st.st_size >> 1; break; default: err(ECANCELED, "File size must be 8KB, 16KB or 128KB"); @@ -837,7 +837,7 @@ static off_t gbe_file_offset(size_t p, const char *f_op) { return gbe_x_offset(p, f_op, "file", - partsize, st.st_size); + partsize, gbe_st.st_size); } /* -- cgit v1.2.1