summaryrefslogtreecommitdiff
path: root/util/nvmutil/nvmutil.c
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-03 03:55:12 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-03 03:55:12 +0000
commitde5087bbd50e50a3015bd77b4f71b6a7df550d24 (patch)
treeb4dd704bda86c43252ba9dbc69eb4474b0ed36eb /util/nvmutil/nvmutil.c
parentefe2635c1216867888d2e01f40f0a2d1c3aefd3f (diff)
util/nvmutil: fix code formatting on xopen
it still had some leftovers from the old macro-style implementation. it still compiled, but this patch fixes the function properly. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil/nvmutil.c')
-rw-r--r--util/nvmutil/nvmutil.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index dd06a0ca..6bc02e35 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -20,7 +20,7 @@ void cmd_setchecksum(void), cmd_brick(void), swap(int partnum), writeGbe(void),
parseMacString(const char *strMac, uint16_t *mac), cmd_swap(void),
openFiles(void), cmd_copy(void), writeGbe_part(int), readGbe_part(int),
set_cmd(int, char **), setWord(int, int, uint16_t), check_bounds(int, int),
- xopen (int *, const char *, int p, struct stat *), checkMacSeparator(int),
+ xopen(int *, const char *, int p, struct stat *), checkMacSeparator(int),
set_mac_byte(int, uint64_t *), usage(char*), set_io_flags(int, char **),
err_if(int);
int goodChecksum(int partnum), write_mac_part(int), set_err(int);
@@ -174,10 +174,10 @@ openFiles(void)
void
xopen(int *f, const char *l, int p, struct stat *st)
{
- if ((*f = open(l, p)) == -1) \
- err(set_err(ECANCELED), "%s", l); \
- if (fstat(*f, st) == -1) \
- err(set_err(ECANCELED), "%s", l);
+ if ((*f = open(l, p)) == -1)
+ err(set_err(ECANCELED), "%s", l);
+ if (fstat(*f, st) == -1)
+ err(set_err(ECANCELED), "%s", l);
}
void