Allow building with FUSE_USE_VERSION >= 30.

filler() function gained an argument.
This commit is contained in:
Pablo Mendez Hernandez
2017-05-24 11:28:05 +00:00
committed by relan
parent cdd8f98023
commit deffad2e71

View File

@@ -117,8 +117,13 @@ static int fuse_exfat_readdir(const char* path, void* buffer,
return -ENOTDIR;
}
#if FUSE_USE_VERSION < 30
filler(buffer, ".", NULL, 0);
filler(buffer, "..", NULL, 0);
#else
filler(buffer, ".", NULL, 0, 0);
filler(buffer, "..", NULL, 0, 0);
#endif
rc = exfat_opendir(&ef, parent, &it);
if (rc != 0)
@@ -134,7 +139,11 @@ static int fuse_exfat_readdir(const char* path, void* buffer,
name, node->is_contiguous ? "contiguous" : "fragmented",
node->size, node->start_cluster);
exfat_stat(&ef, node, &stbuf);
#if FUSE_USE_VERSION < 30
filler(buffer, name, &stbuf, 0);
#else
filler(buffer, name, &stbuf, 0, 0);
#endif
exfat_put_node(&ef, node);
}
exfat_closedir(&ef, &it);