diff options
author | Nikolaus Rath <Nikolaus@rath.org> | 2016-10-09 22:39:28 -0700 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2016-10-09 22:39:28 -0700 |
commit | b5dace61f31249d811ece2c198e3094c292f2766 (patch) | |
tree | 9e478d8632d8e105a92bc9fc3bc70cb09eb95ac7 /lib/helper.c | |
parent | 46caf597dd6b669f24bd7d241cd9248dcf589c88 (diff) |
fuse_main_real(): use fuse_parse_cmdline().
Diffstat (limited to 'lib/helper.c')
-rw-r--r-- | lib/helper.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/helper.c b/lib/helper.c index da93413..c57edb1 100644 --- a/lib/helper.c +++ b/lib/helper.c @@ -188,9 +188,7 @@ int fuse_main_real(int argc, char *argv[], const struct fuse_operations *op, struct fuse_cmdline_opts opts; int res; - memset(&opts, 0, sizeof(opts)); - if (fuse_opt_parse(&args, &opts, fuse_helper_opts, - fuse_helper_opt_proc) == -1) + if (fuse_parse_cmdline(&args, &opts) != 0) return 1; if (opts.show_version) { @@ -218,14 +216,6 @@ int fuse_main_real(int argc, char *argv[], const struct fuse_operations *op, goto out1; } - /* If neither -o subtype nor -o fsname are specified, - set subtype to program's basename */ - if (!opts.nodefault_subtype) { - if (add_default_subtype(args.argv[0], &args) == -1) { - res = 1; - goto out1; - } - } /* --help is processed here and will result in NULL */ fuse = fuse_new(&args, op, op_size, user_data); |