From b3aac4e035e572e4fc01ad32e2fe936e40ab5b09 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Fri, 4 Mar 2005 11:22:31 +0000 Subject: whitespace fix --- cache.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'cache.c') diff --git a/cache.c b/cache.c index b3ccd60..ff74199 100644 --- a/cache.c +++ b/cache.c @@ -77,12 +77,12 @@ static void cache_clean(void) static struct node *cache_lookup(const char *path) { - return (struct node *) g_hash_table_lookup(cache, path); + return (struct node *) g_hash_table_lookup(cache, path); } static void cache_purge(const char *path) { - g_hash_table_remove(cache, path); + g_hash_table_remove(cache, path); } static void cache_purge_parent(const char *path) @@ -196,7 +196,7 @@ static int cache_getattr(const char *path, struct stat *stbuf) { struct node *node; int err; - + pthread_mutex_lock(&cache_lock); node = cache_lookup(path); if (node != NULL) { @@ -219,7 +219,7 @@ static int cache_readlink(const char *path, char *buf, size_t size) { struct node *node; int err; - + pthread_mutex_lock(&cache_lock); node = cache_lookup(path); if (node != NULL) { @@ -236,7 +236,7 @@ static int cache_readlink(const char *path, char *buf, size_t size) if (!err) cache_add_link(path, buf, size); - return err; + return err; } static int cache_dirfill(fuse_cache_dirh_t ch, const char *name, @@ -272,7 +272,7 @@ static int cache_getdir(const char *path, fuse_dirh_t h, fuse_dirfil_t filler) } } pthread_mutex_unlock(&cache_lock); - + ch.path = path; ch.h = h; ch.filler = filler; @@ -501,7 +501,7 @@ int cache_parse_options(int *argcp, char *argv[]) process_options(argcp, argv, cache_opts, 1); if (cache_opts[COPT_CACHE].present) { char *val = cache_opts[COPT_CACHE].value; - if (!val || !val[0] || + if (!val || !val[0] || (strcmp(val, "yes") != 0 && strcmp(val, "no") != 0)) { fprintf(stderr, "Invalid or missing value for 'cache' option\n"); return -1; -- cgit v1.2.3