aboutsummaryrefslogtreecommitdiff
path: root/cache.c
diff options
context:
space:
mode:
authorCam Cope <github@camcope.me>2021-08-30 07:35:33 -0700
committerGitHub <noreply@github.com>2021-08-30 15:35:33 +0100
commitd54c7ecbd618afb4df524e0d96dec7fe7cc2935d (patch)
tree4ffa94f7ab1e76c2657540bab4a0e358d857bfb3 /cache.c
parent803e0e65cf63fdc95c7ad4a519a5db31d27f94d4 (diff)
downloadsshfs-d54c7ecbd618afb4df524e0d96dec7fe7cc2935d.tar
sshfs-d54c7ecbd618afb4df524e0d96dec7fe7cc2935d.tar.gz
sshfs-d54c7ecbd618afb4df524e0d96dec7fe7cc2935d.tar.bz2
sshfs-d54c7ecbd618afb4df524e0d96dec7fe7cc2935d.zip
Fixup whitespace and configure CI to keep it that way
Diffstat (limited to 'cache.c')
-rw-r--r--cache.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/cache.c b/cache.c
index 403c251..9436c5a 100644
--- a/cache.c
+++ b/cache.c
@@ -256,7 +256,7 @@ static void *cache_init(struct fuse_conn_info *conn,
{
void *res;
res = cache.next_oper->init(conn, cfg);
-
+
// Cache requires a path for each request
cfg->nullpath_ok = 0;
@@ -318,9 +318,9 @@ static int cache_releasedir(const char *path, struct fuse_file_info *fi)
{
int err;
struct file_handle *cfi;
-
+
cfi = (struct file_handle*) fi->fh;
-
+
if(cfi->is_open) {
fi->fh = cfi->fs_fh;
err = cache.next_oper->releasedir(path, fi);
@@ -365,7 +365,7 @@ static int cache_readdir(const char *path, void *buf, fuse_fill_dir_t filler,
struct node *node;
assert(offset == 0);
-
+
pthread_mutex_lock(&cache.lock);
node = cache_lookup(path);
if (node != NULL && node->dir != NULL) {
@@ -391,8 +391,8 @@ static int cache_readdir(const char *path, void *buf, fuse_fill_dir_t filler,
}
cfi->is_open = 1;
cfi->fs_fh = fi->fh;
- }
-
+ }
+
ch.path = path;
ch.buf = buf;
ch.filler = filler;