summaryrefslogtreecommitdiff
path: root/symlinks.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-09-15 22:38:28 -0700
committerJunio C Hamano <gitster@pobox.com>2012-09-15 22:58:21 -0700
commit72f3196a2db0f58b24acd2f9369c7f97d0d770d5 (patch)
tree790c265c1cabd78c2a54ad2df983d5420c4c8f4c /symlinks.c
parent96531a5ede7ede4397eb190411bc20256bca3e93 (diff)
downloadgit-72f3196a2db0f58b24acd2f9369c7f97d0d770d5.tar.gz
symlinks.c: mark private file-scope symbols as static
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'symlinks.c')
-rw-r--r--symlinks.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/symlinks.c b/symlinks.c
index 290036744b..c2b41a8501 100644
--- a/symlinks.c
+++ b/symlinks.c
@@ -1,5 +1,8 @@
#include "cache.h"
+static int threaded_check_leading_path(struct cache_def *cache, const char *name, int len);
+static int threaded_has_dirs_only_path(struct cache_def *cache, const char *name, int len, int prefix_len);
+
/*
* Returns the length (on a path component basis) of the longest
* common prefix match of 'name_a' and 'name_b'.
@@ -231,7 +234,7 @@ int check_leading_path(const char *name, int len)
* Return path length if leading path exists and is neither a
* directory nor a symlink.
*/
-int threaded_check_leading_path(struct cache_def *cache, const char *name, int len)
+static int threaded_check_leading_path(struct cache_def *cache, const char *name, int len)
{
int flags;
int match_len = lstat_cache_matchlen(cache, name, len, &flags,
@@ -263,7 +266,7 @@ int has_dirs_only_path(const char *name, int len, int prefix_len)
* 'prefix_len', thus we then allow for symlinks in the prefix part as
* long as those points to real existing directories.
*/
-int threaded_has_dirs_only_path(struct cache_def *cache, const char *name, int len, int prefix_len)
+static int threaded_has_dirs_only_path(struct cache_def *cache, const char *name, int len, int prefix_len)
{
return lstat_cache(cache, name, len,
FL_DIR|FL_FULLPATH, prefix_len) &