From 0ebfa9027441cc55b79a7615e328a9ff775af11f Mon Sep 17 00:00:00 2001 From: "lulf@carrot.studby.ntnu.no" Date: Sun, 20 Apr 2008 17:17:17 +0200 Subject: - Make it work. --- include/mp3fs.h | 2 +- src/mp3_vnops.c | 4 ++-- src/mp3fs.c | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/mp3fs.h b/include/mp3fs.h index 0956183..4b6cc5d 100644 --- a/include/mp3fs.h +++ b/include/mp3fs.h @@ -1,5 +1,5 @@ #ifndef _MP3FS_H_ #define _MP3FS_H_ struct fuse_args; -int mp3_run(struct fuse_args *); +int mp3_run(int, char **); #endif diff --git a/src/mp3_vnops.c b/src/mp3_vnops.c index 9d60a98..c9ee97b 100755 --- a/src/mp3_vnops.c +++ b/src/mp3_vnops.c @@ -81,8 +81,8 @@ static struct fuse_operations mp3_ops = { }; int -mp3_run(struct fuse_args *args) +mp3_run(int argc, char **argv) { - return (fuse_main(args->argc, args->argv, &mp3_ops, NULL)); + return (fuse_main(argc, argv, &mp3_ops, NULL)); } diff --git a/src/mp3fs.c b/src/mp3fs.c index ebc1c27..b8f0ea1 100755 --- a/src/mp3fs.c +++ b/src/mp3fs.c @@ -11,18 +11,18 @@ static int mp3fs_opt_proc (void *, const char *, int, struct fuse_args *); /* Just for testing the argument parsing. TODO: fix something better */ -char *sourcedir = NULL; +const char *sourcedir = NULL; int main(int argc, char **argv) { - struct fuse_args args = FUSE_ARGS_INIT (argc, argv); +/* struct fuse_args args = FUSE_ARGS_INIT (argc, argv); if (fuse_opt_parse(&args, NULL, NULL, mp3fs_opt_proc) != 0) - exit (1); + exit (1);*/ printf("Starting up mp3fs\n"); - mp3_run(&args); + mp3_run(argc, argv); printf("Shutting down mp3fs\n"); } -- cgit v1.2.3