From 0ccb790fc01e6364d91736e235014dddbef994b6 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Tue, 3 Mar 2026 00:11:49 +0000 Subject: util/nvmutil: remove pointless arg in openFiles Signed-off-by: Leah Rowe --- util/nvmutil/nvmutil.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index 7c0d0c31..e2e14be0 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -18,7 +18,7 @@ void cmd_setchecksum(void), cmd_brick(void), swap(int partnum), writeGbe(void), cmd_dump(void), cmd_setmac(void), nvmalloc(void), readGbe(void), checkdir(const char *path), macf(int partnum), hexdump(int partnum), parseMacString(const char *strMac, uint16_t *mac), cmd_swap(void), - openFiles(const char *path), cmd_copy(void), writeGbe_part(int), + openFiles(void), cmd_copy(void), writeGbe_part(int), readGbe_part(int), usage(char*), set_io_flags(int, char **), set_cmd(int, char **), setWord(int, int, uint16_t), check_bounds(int, int), xopen (int *, const char *, int p, struct stat *); @@ -87,7 +87,7 @@ main(int argc, char *argv[]) err_if(pledge("stdio rpath wpath", NULL) == -1); } #endif - openFiles(fname); + openFiles(); #ifdef __OpenBSD__ err_if(pledge("stdio", NULL) == -1); #endif @@ -154,7 +154,7 @@ checkdir(const char *path) } void -openFiles(const char *path) +openFiles(void) { struct stat st; @@ -162,7 +162,7 @@ openFiles(const char *path) checkdir(fname); xopen(&rfd, "/dev/urandom", O_RDONLY, &st); - xopen(&fd, path, flags, &st); + xopen(&fd, fname, flags, &st); switch(st.st_size) { case SIZE_8KB: -- cgit v1.2.1