util/nvmutil: rename fd to fd_ptr in xopen()

clearer intent

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-06 22:26:22 +00:00
parent 4635a0eae9
commit e273391792
+3 -3
View File
@@ -356,11 +356,11 @@ open_gbe_file(void)
}
static void
xopen(int *fd, const char *path, int flags, struct stat *st)
xopen(int *fd_ptr, const char *path, int flags, struct stat *st)
{
if ((*fd = open(path, flags)) == -1)
if ((*fd_ptr = open(path, flags)) == -1)
err(ECANCELED, "%s", path);
if (fstat(*fd, st) == -1)
if (fstat(*fd_ptr, st) == -1)
err(ECANCELED, "%s", path);
}