aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2005-12-09 20:30:32 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2005-12-09 20:30:32 +0000
commiteddbd3967b459a0ccdf09e827709fd135b29aa0b (patch)
tree6858b99afa97c86149f50f70afd4451c0be7e424
parent891a3e5d87fb03e2950e0adb1abc0e2b61f0ea4c (diff)
downloadsshfs-eddbd3967b459a0ccdf09e827709fd135b29aa0b.tar
sshfs-eddbd3967b459a0ccdf09e827709fd135b29aa0b.tar.gz
sshfs-eddbd3967b459a0ccdf09e827709fd135b29aa0b.tar.bz2
sshfs-eddbd3967b459a0ccdf09e827709fd135b29aa0b.zip
fix
-rw-r--r--cache.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/cache.c b/cache.c
index 8e44488..b0aea93 100644
--- a/cache.c
+++ b/cache.c
@@ -519,12 +519,6 @@ struct fuse_operations *cache_init(struct fuse_cache_operations *oper)
return &cache_oper;
}
-static int cache_opt_proc(void *data, const char *arg, int key)
-{
- (void) data, (void) arg, (void) key;
- return 1;
-}
-
static const struct fuse_opt cache_opts[] = {
{ "cache=yes", offsetof(struct cache, on), 1 },
{ "cache=no", offsetof(struct cache, on), 0 },
@@ -544,6 +538,5 @@ int cache_parse_options(int *argcp, char **argvp[])
cache.link_timeout = DEFAULT_CACHE_TIMEOUT;
cache.on = 1;
- return fuse_opt_parse(0, NULL, &cache, cache_opts, cache_opt_proc,
- argcp, argvp);
+ return fuse_opt_parse(0, NULL, &cache, cache_opts, NULL, argcp, argvp);
}