aboutsummaryrefslogtreecommitdiffstats
path: root/example
diff options
context:
space:
mode:
Diffstat (limited to 'example')
-rw-r--r--example/fuse_lo-plus.c6
-rwxr-xr-xexample/hello_ll.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/example/fuse_lo-plus.c b/example/fuse_lo-plus.c
index adbbbee..30ad21e 100644
--- a/example/fuse_lo-plus.c
+++ b/example/fuse_lo-plus.c
@@ -95,7 +95,7 @@ static struct lo_inode *lo_inode(fuse_req_t req, fuse_ino_t ino)
if (ino == FUSE_ROOT_ID)
return &lo_data(req)->root;
else
- return (struct lo_inode *) (uintptr_t) ino;
+ return (struct lo_inode *) (uintptr_t) ino;
}
static int lo_fd(fuse_req_t req, fuse_ino_t ino)
@@ -469,7 +469,7 @@ int main(int argc, char *argv[])
err(1, "open(\"/\", O_PATH)");
if (fuse_parse_cmdline(&args, &mountpoint, NULL, NULL) != -1 &&
- (ch = fuse_mount(mountpoint, &args)) != NULL) {
+ (ch = fuse_session_mount(mountpoint, &args)) != NULL) {
struct fuse_session *se;
se = fuse_lowlevel_new(&args, &lo_oper, sizeof(lo_oper), &lo);
if (se != NULL) {
@@ -481,7 +481,7 @@ int main(int argc, char *argv[])
}
fuse_session_destroy(se);
}
- fuse_unmount(mountpoint, ch);
+ fuse_session_unmount(mountpoint, ch);
free(mountpoint);
}
fuse_opt_free_args(&args);
diff --git a/example/hello_ll.c b/example/hello_ll.c
index 1bf7155..3c87bc6 100755
--- a/example/hello_ll.c
+++ b/example/hello_ll.c
@@ -191,7 +191,7 @@ int main(int argc, char *argv[])
int err = -1;
if (fuse_parse_cmdline(&args, &mountpoint, NULL, NULL) != -1 &&
- (ch = fuse_mount(mountpoint, &args)) != NULL) {
+ (ch = fuse_session_mount(mountpoint, &args)) != NULL) {
struct fuse_session *se;
se = fuse_lowlevel_new(&args, &hello_ll_oper,
@@ -208,7 +208,7 @@ int main(int argc, char *argv[])
}
fuse_session_destroy(se);
}
- fuse_unmount(mountpoint, ch);
+ fuse_session_unmount(mountpoint, ch);
}
fuse_opt_free_args(&args);