summaryrefslogtreecommitdiff
path: root/tools-util.c
diff options
context:
space:
mode:
authorHunter Shaffer <huntershaffer182456@gmail.com>2023-08-29 17:32:55 -0400
committerHunter Shaffer <huntershaffer182456@gmail.com>2023-10-08 21:06:07 -0400
commitb2ffa12074f1a6060b715e0891c1efb3ee64be68 (patch)
treebe747d1b4d0a3e76da2bee78d69dd88272da7c9b /tools-util.c
parent1251ea58a84e365db3754e6f5f57bd442484dc89 (diff)
deleted unused path to device in get_size, get_blocksize
Signed-off-by: Hunter Shaffer <huntershaffer182456@gmail.com>
Diffstat (limited to 'tools-util.c')
-rw-r--r--tools-util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools-util.c b/tools-util.c
index 81ce63ae..9b183735 100644
--- a/tools-util.c
+++ b/tools-util.c
@@ -186,7 +186,7 @@ ssize_t read_string_list_or_die(const char *opt, const char * const list[],
}
/* Returns size of file or block device: */
-u64 get_size(const char *path, int fd)
+u64 get_size(int fd)
{
struct stat statbuf = xfstat(fd);
@@ -199,7 +199,7 @@ u64 get_size(const char *path, int fd)
}
/* Returns blocksize, in bytes: */
-unsigned get_blocksize(const char *path, int fd)
+unsigned get_blocksize(int fd)
{
struct stat statbuf = xfstat(fd);