zdsfs: fix compiler warnings

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 <ginggs@debian.org>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Graham Inggs
2021-09-15 21:03:28 +02:00
committed by Jan Höppner
parent 5c468a220e
commit 03ddcd6267

View File

@@ -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;