aboutsummaryrefslogtreecommitdiffstats
path: root/example/fusexmp.c
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2005-11-07 11:59:00 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2005-11-07 11:59:00 +0000
commit52cb09d16ed7e233c35c0c33e72a952211a056b3 (patch)
treee13243dd1ac8f5e3eaaf10e11c6d2637b15e9046 /example/fusexmp.c
parentf7eec0361d3b2465c8cf3449082ee396b016e29b (diff)
downloadlibfuse-52cb09d16ed7e233c35c0c33e72a952211a056b3.tar.gz
fix up statfs interface
Diffstat (limited to 'example/fusexmp.c')
-rw-r--r--example/fusexmp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/example/fusexmp.c b/example/fusexmp.c
index 1732556..5a2e9a0 100644
--- a/example/fusexmp.c
+++ b/example/fusexmp.c
@@ -20,7 +20,6 @@
#include <fcntl.h>
#include <dirent.h>
#include <errno.h>
-#include <sys/statfs.h>
#ifdef HAVE_SETXATTR
#include <sys/xattr.h>
#endif
@@ -258,11 +257,11 @@ static int xmp_write(const char *path, const char *buf, size_t size,
return res;
}
-static int xmp_statfs(const char *path, struct statfs *stbuf)
+static int xmp_statfs(const char *path, struct statvfs *stbuf)
{
int res;
- res = statfs(path, stbuf);
+ res = statvfs(path, stbuf);
if(res == -1)
return -errno;