mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
zdump: 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 zfuse_getattr() and zfuse_readdir() to match. GitHub-ID: https://github.com/ibm-s390-linux/s390-tools/pull/117 Signed-off-by: Graham Inggs <ginggs@debian.org> Reviewed-by: Alexander Egorenkov <egorenar@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
9b84de4b0a
commit
58cae4fecd
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user