aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2005-12-14 23:25:00 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2005-12-14 23:25:00 +0000
commitcaa093140a5540442f40f65fbf8cf596bb6066a9 (patch)
treef8a7913dbca0f00386b31c4610276ce0d506a7ba /lib
parent6470957cce815f8c707882093c8f76165f69cc55 (diff)
downloadlibfuse-caa093140a5540442f40f65fbf8cf596bb6066a9.tar.gz
fix
Diffstat (limited to 'lib')
-rw-r--r--lib/fuse.c5
-rw-r--r--lib/fuse_lowlevel.c5
-rw-r--r--lib/fuse_opt.c2
-rw-r--r--lib/helper.c6
4 files changed, 14 insertions, 4 deletions
diff --git a/lib/fuse.c b/lib/fuse.c
index d97f525..3b64bc4 100644
--- a/lib/fuse.c
+++ b/lib/fuse.c
@@ -1807,10 +1807,13 @@ void fuse_set_getcontext_func(struct fuse_context *(*func)(void))
fuse_getcontext = func;
}
-static int fuse_lib_opt_proc(void *data, const char *arg, int key)
+static int fuse_lib_opt_proc(void *data, const char *arg, int key,
+ int *argcp, char **argvp[])
{
struct fuse_config *conf = data;
(void) key;
+ (void) argcp;
+ (void) argvp;
return fuse_opt_add_opt(&conf->llopts, arg);
}
diff --git a/lib/fuse_lowlevel.c b/lib/fuse_lowlevel.c
index b35b16a..176b718 100644
--- a/lib/fuse_lowlevel.c
+++ b/lib/fuse_lowlevel.c
@@ -925,10 +925,13 @@ static struct fuse_opt fuse_ll_opts[] = {
FUSE_OPT_END
};
-static int fuse_ll_opt_proc(void *data, const char *arg, int key)
+static int fuse_ll_opt_proc(void *data, const char *arg, int key,
+ int *argcp, char **argvp[])
{
(void) data;
(void) key;
+ (void) argcp;
+ (void) argvp;
fprintf(stderr, "fuse: unknown option `%s'\n", arg);
return -1;
}
diff --git a/lib/fuse_opt.c b/lib/fuse_opt.c
index 4eb4eed..a0ed4ac 100644
--- a/lib/fuse_opt.c
+++ b/lib/fuse_opt.c
@@ -114,7 +114,7 @@ static int call_proc(struct fuse_opt_context *ctx, const char *arg, int key,
int iso)
{
if (ctx->proc) {
- int res = ctx->proc(ctx->data, arg, key);
+ int res = ctx->proc(ctx->data, arg, key, &ctx->argcout, &ctx->argvout);
if (res == -1 || !res)
return res;
}
diff --git a/lib/helper.c b/lib/helper.c
index bb02a3a..d61aaec 100644
--- a/lib/helper.c
+++ b/lib/helper.c
@@ -156,10 +156,14 @@ static const struct fuse_opt fuse_helper_opts[] = {
FUSE_OPT_END
};
-static int fuse_helper_opt_proc(void *data, const char *arg, int key)
+static int fuse_helper_opt_proc(void *data, const char *arg, int key,
+ int *argcp, char **argvp[])
{
struct helper_opts *hopts = data;
+ (void) argcp;
+ (void) argvp;
+
switch (key) {
case KEY_HELP:
case KEY_HELP_NOHEADER: