From eddbd3967b459a0ccdf09e827709fd135b29aa0b Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Fri, 9 Dec 2005 20:30:32 +0000 Subject: fix --- cache.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'cache.c') 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); } -- cgit v1.2.3