aboutsummaryrefslogtreecommitdiff
path: root/cache.c
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2005-03-04 11:22:31 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2005-03-04 11:22:31 +0000
commitb3aac4e035e572e4fc01ad32e2fe936e40ab5b09 (patch)
treef7017a34509652f6d53f3b5f80ee5994de0388ac /cache.c
parent330c126684740f10aa2a0fe7a1838af1c19932d2 (diff)
downloadsshfs-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.c14
1 files changed, 7 insertions, 7 deletions
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;