From 194feb8f68c6c92e14302471177adf40fc357e93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjetil=20=C3=98rbekk?= Date: Fri, 15 Aug 2008 21:30:11 +0200 Subject: - Removed the musicfolder argument --- src/mfs_vnops.c | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/src/mfs_vnops.c b/src/mfs_vnops.c index ccd44b3..1b71b38 100755 --- a/src/mfs_vnops.c +++ b/src/mfs_vnops.c @@ -349,14 +349,15 @@ static struct fuse_operations mfs_ops = { static int musicfs_opt_proc (void *data, const char *arg, int key, struct fuse_args *outargs) { - static int musicpath_set = 0; + /* Using config now. This is how we added the additional parameter: */ + /* static int musicpath_set = 0; */ + /* if (key == FUSE_OPT_KEY_NONOPT && !musicpath_set) { */ + /* /\* The source directory isn't already set, let's do it *\/ */ + /* strcpy(musicpath, arg); */ + /* musicpath_set = 1; */ + /* return (0); */ + /* } */ - if (key == FUSE_OPT_KEY_NONOPT && !musicpath_set) { - /* The source directory isn't already set, let's do it */ - strcpy(musicpath, arg); - musicpath_set = 1; - return (0); - } return (1); } @@ -364,13 +365,10 @@ int mfs_run(int argc, char **argv) { int ret; - /* - * XXX: Build index of mp3's. - */ /* Update tables. */ - if (argc < 2) { - fprintf(stderr, "Usage: %s \n", argv[0]); + if (argc < 1) { + fprintf(stderr, "Usage: %s \n", argv[0]); return (-1); } -- cgit v1.2.3