From b5dace61f31249d811ece2c198e3094c292f2766 Mon Sep 17 00:00:00 2001 From: Nikolaus Rath Date: Sun, 9 Oct 2016 22:39:28 -0700 Subject: fuse_main_real(): use fuse_parse_cmdline(). --- lib/helper.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'lib/helper.c') 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); -- cgit v1.2.3