Skip to content

Commit 72f3196

Browse files
committed
symlinks.c: mark private file-scope symbols as static
Signed-off-by: Junio C Hamano <[email protected]>
1 parent 96531a5 commit 72f3196

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

cache.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -947,9 +947,7 @@ struct cache_def {
947947
extern int has_symlink_leading_path(const char *name, int len);
948948
extern int threaded_has_symlink_leading_path(struct cache_def *, const char *, int);
949949
extern int check_leading_path(const char *name, int len);
950-
extern int threaded_check_leading_path(struct cache_def *cache, const char *name, int len);
951950
extern int has_dirs_only_path(const char *name, int len, int prefix_len);
952-
extern int threaded_has_dirs_only_path(struct cache_def *cache, const char *name, int len, int prefix_len);
953951
extern void schedule_dir_for_removal(const char *name, int len);
954952
extern void remove_scheduled_dirs(void);
955953

symlinks.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#include "cache.h"
22

3+
static int threaded_check_leading_path(struct cache_def *cache, const char *name, int len);
4+
static int threaded_has_dirs_only_path(struct cache_def *cache, const char *name, int len, int prefix_len);
5+
36
/*
47
* Returns the length (on a path component basis) of the longest
58
* common prefix match of 'name_a' and 'name_b'.
@@ -231,7 +234,7 @@ int check_leading_path(const char *name, int len)
231234
* Return path length if leading path exists and is neither a
232235
* directory nor a symlink.
233236
*/
234-
int threaded_check_leading_path(struct cache_def *cache, const char *name, int len)
237+
static int threaded_check_leading_path(struct cache_def *cache, const char *name, int len)
235238
{
236239
int flags;
237240
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)
263266
* 'prefix_len', thus we then allow for symlinks in the prefix part as
264267
* long as those points to real existing directories.
265268
*/
266-
int threaded_has_dirs_only_path(struct cache_def *cache, const char *name, int len, int prefix_len)
269+
static int threaded_has_dirs_only_path(struct cache_def *cache, const char *name, int len, int prefix_len)
267270
{
268271
return lstat_cache(cache, name, len,
269272
FL_DIR|FL_FULLPATH, prefix_len) &

0 commit comments

Comments
 (0)