diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2005-03-04 11:22:31 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2005-03-04 11:22:31 +0000 |
commit | b3aac4e035e572e4fc01ad32e2fe936e40ab5b09 (patch) | |
tree | f7017a34509652f6d53f3b5f80ee5994de0388ac /cache.c | |
parent | 330c126684740f10aa2a0fe7a1838af1c19932d2 (diff) | |
download | sshfs-b3aac4e035e572e4fc01ad32e2fe936e40ab5b09.tar sshfs-b3aac4e035e572e4fc01ad32e2fe936e40ab5b09.tar.gz sshfs-b3aac4e035e572e4fc01ad32e2fe936e40ab5b09.tar.bz2 sshfs-b3aac4e035e572e4fc01ad32e2fe936e40ab5b09.zip |
whitespace fixsshfs_1_1
Diffstat (limited to 'cache.c')
-rw-r--r-- | cache.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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; |