From 03ddcd6267d33b2b7ba2a5bd73f8027b15591d79 Mon Sep 17 00:00:00 2001 From: Graham Inggs Date: Wed, 15 Sep 2021 21:03:28 +0200 Subject: [PATCH] zdsfs: 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 zdsfs_getattr() and zdsfs_readdir() to match. GitHub-ID: https://github.com/ibm-s390-linux/s390-tools/pull/117 Signed-off-by: Graham Inggs Signed-off-by: Jan Höppner --- zdsfs/zdsfs.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/zdsfs/zdsfs.c b/zdsfs/zdsfs.c index ee2909fd..5c66fb4d 100644 --- a/zdsfs/zdsfs.c +++ b/zdsfs/zdsfs.c @@ -312,7 +312,8 @@ void keepalive_start(void) setup_timer(zdsfsinfo.keepalive); } -static int zdsfs_getattr(const char *path, struct stat *stbuf) +static int zdsfs_getattr(const char *path, struct stat *stbuf, + struct fuse_file_info *UNUSED(fi)) { char normds[MAXDSNAMELENGTH]; size_t dssize; @@ -524,7 +525,8 @@ static int zdsfs_update_vtoc(void) } static int zdsfs_readdir(const char *path, void *buf, fuse_fill_dir_t filler, - off_t UNUSED(offset), struct fuse_file_info *UNUSED(fi)) + off_t UNUSED(offset), struct fuse_file_info *UNUSED(fi), + enum fuse_readdir_flags UNUSED(flags)) { char normds[MAXDSNAMELENGTH]; char *mbrname;