From 58cae4fecdc64fe1cf97f8518f137b6a63ad236b Mon Sep 17 00:00:00 2001 From: Graham Inggs Date: Wed, 15 Sep 2021 18:17:37 +0200 Subject: [PATCH] zdump: fix compiler warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Compiling against fuse3 shows 'incompatible pointer type' warnings due to the additional function arguments in the new API. Therefore, adjust the declarations of zfuse_getattr() and zfuse_readdir() to match. GitHub-ID: https://github.com/ibm-s390-linux/s390-tools/pull/117 Signed-off-by: Graham Inggs Reviewed-by: Alexander Egorenkov Signed-off-by: Jan Höppner --- zdump/zfuse.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/zdump/zfuse.c b/zdump/zfuse.c index 61dd009d..a76e7bf2 100644 --- a/zdump/zfuse.c +++ b/zdump/zfuse.c @@ -84,8 +84,11 @@ static void stat_dump_init(void) /* * FUSE callback: Getattr */ -static int zfuse_getattr(const char *path, struct stat *stat) +static int zfuse_getattr(const char *path, struct stat *stat, + struct fuse_file_info *fi) { + (void) fi; + if (strcmp(path, "/") == 0) { *stat = l.stat_root; return 0; @@ -101,10 +104,12 @@ static int zfuse_getattr(const char *path, struct stat *stat) * FUSE callback: Readdir - Return ".", ".." and dump file */ static int zfuse_readdir(const char *path, void *buf, fuse_fill_dir_t filler, - off_t offset, struct fuse_file_info *fi) + off_t offset, struct fuse_file_info *fi, + enum fuse_readdir_flags flags) { (void) offset; (void) fi; + (void) flags; if (strcmp(path, "/") != 0) return -ENOENT;