diff options
Diffstat (limited to 'example/notify_store_retrieve.c')
-rw-r--r-- | example/notify_store_retrieve.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/example/notify_store_retrieve.c b/example/notify_store_retrieve.c index d7e1c4b..1298591 100644 --- a/example/notify_store_retrieve.c +++ b/example/notify_store_retrieve.c @@ -387,7 +387,7 @@ int main(int argc, char *argv[]) { struct fuse_args args = FUSE_ARGS_INIT(argc, argv); struct fuse_session *se; struct fuse_cmdline_opts opts; - struct fuse_loop_config config; + struct fuse_loop_config *config; int ret = -1; if (fuse_opt_parse(&args, &options, option_spec, NULL) == -1) @@ -436,9 +436,12 @@ int main(int argc, char *argv[]) { if (opts.singlethread) ret = fuse_session_loop(se); else { - config.clone_fd = opts.clone_fd; - config.max_idle_threads = opts.max_idle_threads; - ret = fuse_session_loop_mt(se, &config); + config = fuse_loop_cfg_create(); + fuse_loop_cfg_set_clone_fd(config, opts.clone_fd); + fuse_loop_cfg_set_max_threads(config, opts.max_threads); + ret = fuse_session_loop_mt(se, config); + fuse_loop_cfg_destroy(config); + config = NULL; } assert(retrieve_status != 1); |