Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
symlinks.c: mark private file-scope symbols as static
author
Junio C Hamano
<gitster@pobox.com>
Sun, 16 Sep 2012 05:38:28 +0000
(22:38 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Sun, 16 Sep 2012 05:58:21 +0000
(22:58 -0700)
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h
patch
|
blob
|
history
symlinks.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
96531a5
)
diff --git
a/cache.h
b/cache.h
index eb4a0316d2d654160a51789dce5ad69fc9d1af45..c9739d4d45e89ca69412406d031af93924ceab38 100644
(file)
--- a/
cache.h
+++ b/
cache.h
@@
-947,9
+947,7
@@
struct cache_def {
extern int has_symlink_leading_path(const char *name, int len);
extern int threaded_has_symlink_leading_path(struct cache_def *, const char *, int);
extern int check_leading_path(const char *name, int len);
extern int has_symlink_leading_path(const char *name, int len);
extern int threaded_has_symlink_leading_path(struct cache_def *, const char *, int);
extern int check_leading_path(const char *name, int len);
-extern int threaded_check_leading_path(struct cache_def *cache, const char *name, int len);
extern int has_dirs_only_path(const char *name, int len, int prefix_len);
extern int has_dirs_only_path(const char *name, int len, int prefix_len);
-extern int threaded_has_dirs_only_path(struct cache_def *cache, const char *name, int len, int prefix_len);
extern void schedule_dir_for_removal(const char *name, int len);
extern void remove_scheduled_dirs(void);
extern void schedule_dir_for_removal(const char *name, int len);
extern void remove_scheduled_dirs(void);
diff --git
a/symlinks.c
b/symlinks.c
index 290036744bcfd390f91e75db49bf620bb12c12ea..c2b41a85013eec87a412badc4097f364d547726d 100644
(file)
--- a/
symlinks.c
+++ b/
symlinks.c
@@
-1,5
+1,8
@@
#include "cache.h"
#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'.
/*
* 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.
*/
* 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,
{
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.
*/
* '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) &
{
return lstat_cache(cache, name, len,
FL_DIR|FL_FULLPATH, prefix_len) &