summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-06 21:22:50 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-06 21:22:50 +0000
commited321086133b474d1676ab7a54d52f7a9a5c9939 (patch)
tree7a15a0cf212e4178f84f0a7e6d7584ac7080630a
parentb65c9880072e8bceabd7d9d744f79af5344b8725 (diff)
util/nvmutil: rename global st variable
rename it to gbe_st, for clarity Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r--util/nvmutil/nvmutil.c10
1 files changed, 5 insertions, 5 deletions
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);
}
/*