mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
util/nvmutil: tidy up the xopen macro
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -71,7 +71,8 @@ void (*cmd)(void) = NULL;
|
|||||||
#define xopen(f,l,p) \
|
#define xopen(f,l,p) \
|
||||||
if ((f = open(l, p)) == -1) \
|
if ((f = open(l, p)) == -1) \
|
||||||
err(SET_ERR(ECANCELED), "%s", l); \
|
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
|
int
|
||||||
main(int argc, char *argv[])
|
main(int argc, char *argv[])
|
||||||
|
|||||||
Reference in New Issue
Block a user