diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-06 22:26:22 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-06 22:26:22 +0000 |
| commit | e27339179241937b728a38c701d969dc0b4a84d3 (patch) | |
| tree | dbf2c9bb667630e81ed5669039dc5f271d5537e1 | |
| parent | 4635a0eae947233e955937e79d8b9cf0edfeb6da (diff) | |
util/nvmutil: rename fd to fd_ptr in xopen()
clearer intent
Signed-off-by: Leah Rowe <leah@libreboot.org>
| -rw-r--r-- | util/nvmutil/nvmutil.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); } |
