util/nvmutil: tidy up the xopen macro

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-02 17:41:10 +00:00
parent a34e79f501
commit 51e4e43c94
+2 -1
View File
@@ -71,7 +71,8 @@ void (*cmd)(void) = NULL;
#define xopen(f,l,p) \
if ((f = open(l, p)) == -1) \
err(SET_ERR(ECANCELED), "%s", l); \
if (fstat(f, &st) == -1) err(SET_ERR(ECANCELED), "%s", l)
if (fstat(f, &st) == -1) \
err(SET_ERR(ECANCELED), "%s", l)
int
main(int argc, char *argv[])