aboutsummaryrefslogtreecommitdiff
path: root/example/null.c
diff options
context:
space:
mode:
Diffstat (limited to 'example/null.c')
-rw-r--r--example/null.c26
1 files changed, 6 insertions, 20 deletions
diff --git a/example/null.c b/example/null.c
index ca79dc4..91f2cda 100644
--- a/example/null.c
+++ b/example/null.c
@@ -71,26 +71,12 @@ static int null_statfs(struct fuse_statfs *st)
}
static struct fuse_operations null_oper = {
- getattr: null_getattr,
- readlink: NULL,
- getdir: NULL,
- mknod: NULL,
- mkdir: NULL,
- symlink: NULL,
- unlink: NULL,
- rmdir: NULL,
- rename: NULL,
- link: NULL,
- chmod: NULL,
- chown: NULL,
- truncate: null_truncate,
- utime: NULL,
- open: null_open,
- read: null_read,
- write: null_write,
- statfs: null_statfs,
- release: NULL,
- fsync: NULL
+ .getattr = null_getattr,
+ .truncate = null_truncate,
+ .open = null_open,
+ .read = null_read,
+ .write = null_write,
+ .statfs = null_statfs,
};
int main(int argc, char *argv[])