mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-17 08:40:14 +02:00
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>
This commit is contained in:
@@ -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),
|
parseMacString(const char *strMac, uint16_t *mac), cmd_swap(void),
|
||||||
openFiles(void), cmd_copy(void), writeGbe_part(int), readGbe_part(int),
|
openFiles(void), cmd_copy(void), writeGbe_part(int), readGbe_part(int),
|
||||||
set_cmd(int, char **), setWord(int, int, uint16_t), check_bounds(int, 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 **),
|
set_mac_byte(int, uint64_t *), usage(char*), set_io_flags(int, char **),
|
||||||
err_if(int);
|
err_if(int);
|
||||||
int goodChecksum(int partnum), write_mac_part(int), set_err(int);
|
int goodChecksum(int partnum), write_mac_part(int), set_err(int);
|
||||||
@@ -174,10 +174,10 @@ openFiles(void)
|
|||||||
void
|
void
|
||||||
xopen(int *f, const char *l, int p, struct stat *st)
|
xopen(int *f, const char *l, int p, struct stat *st)
|
||||||
{
|
{
|
||||||
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) \
|
if (fstat(*f, st) == -1)
|
||||||
err(set_err(ECANCELED), "%s", l);
|
err(set_err(ECANCELED), "%s", l);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
Reference in New Issue
Block a user