mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-21 19:26:22 +02:00
util/nvmutil: rename fd to fd_ptr in xopen()
clearer intent Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -356,11 +356,11 @@ open_gbe_file(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static 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);
|
err(ECANCELED, "%s", path);
|
||||||
if (fstat(*fd, st) == -1)
|
if (fstat(*fd_ptr, st) == -1)
|
||||||
err(ECANCELED, "%s", path);
|
err(ECANCELED, "%s", path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user