From e27339179241937b728a38c701d969dc0b4a84d3 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Fri, 6 Mar 2026 22:26:22 +0000 Subject: util/nvmutil: rename fd to fd_ptr in xopen() clearer intent Signed-off-by: Leah Rowe --- util/nvmutil/nvmutil.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'util/nvmutil/nvmutil.c') diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index 23755606..81812b0a 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -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); } -- cgit v1.2.1