aboutsummaryrefslogtreecommitdiffstats
path: root/example/null.c
diff options
context:
space:
mode:
authorMark Glines <mark@glines.org>2002-03-17 06:58:33 +0000
committerMark Glines <mark@glines.org>2002-03-17 06:58:33 +0000
commit85801bbad1b3f1160bd35608f30048faa8d94995 (patch)
tree3cf670052dc61d8ec2da79c21047bc41c1db6b23 /example/null.c
parent3e3d081d28ff60331d791ae9bc4e1f8d98701d86 (diff)
downloadlibfuse-85801bbad1b3f1160bd35608f30048faa8d94995.tar.gz
'struct statfs' changes size, and entries within it change position, depending
on which headerfiles are included and which macros are defined. Because its unreliable, we now use struct fuse_statfs everywhere except in the kernel. Also fixed some perl fuse_main semantics - it now works much better when multithreading is disabled.
Diffstat (limited to 'example/null.c')
-rw-r--r--example/null.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/example/null.c b/example/null.c
index 3a948f2..6b2c1b6 100644
--- a/example/null.c
+++ b/example/null.c
@@ -64,10 +64,10 @@ static int null_write(const char *path, const char *UNUSED(buf), size_t size,
return size;
}
-static int null_statfs(struct statfs *st)
+static int null_statfs(struct fuse_statfs *st)
{
- return st->f_blocks = st->f_bavail = st->f_bsize = st->f_files =
- st->f_ffree = st->f_namelen = 0;
+ return st->block_size = st->blocks = st->blocks_free = st->files =
+ st->files_free = st->namelen = 0;
}
static struct fuse_operations null_oper = {