aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolaus Rath <Nikolaus@rath.org>2017-08-03 18:18:07 +0200
committerNikolaus Rath <Nikolaus@rath.org>2017-08-03 18:18:07 +0200
commit40e202391eaa6d3b439e07499c8f0a94a359e691 (patch)
treeec6050ac88fc8d12701b0e44c3598824b9c4705f
parent42dfaf9a5bdc1ee429c7718e8788ca37a5763e0d (diff)
downloadsshfs-40e202391eaa6d3b439e07499c8f0a94a359e691.tar
sshfs-40e202391eaa6d3b439e07499c8f0a94a359e691.tar.gz
sshfs-40e202391eaa6d3b439e07499c8f0a94a359e691.tar.bz2
sshfs-40e202391eaa6d3b439e07499c8f0a94a359e691.zip
Turn cache_invalid_write() static
It's only used in this file, and otherwise the missing prototype produces a compiler warning.
-rw-r--r--cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cache.c b/cache.c
index 34a87ca..b0a0332 100644
--- a/cache.c
+++ b/cache.c
@@ -116,7 +116,7 @@ void cache_invalidate(const char *path)
pthread_mutex_unlock(&cache.lock);
}
-void cache_invalidate_write(const char *path)
+static void cache_invalidate_write(const char *path)
{
pthread_mutex_lock(&cache.lock);
cache_purge(path);