Skip to content

Commit 0d316f0

Browse files
committed
dir.c: make excluded() file scope static
Now there no longer is external callers of this interface, so we can make it static. Signed-off-by: Junio C Hamano <[email protected]>
1 parent 589570d commit 0d316f0

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

dir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ int excluded_from_list(const char *pathname,
560560
return -1; /* undecided */
561561
}
562562

563-
int excluded(struct dir_struct *dir, const char *pathname, int *dtype_p)
563+
static int excluded(struct dir_struct *dir, const char *pathname, int *dtype_p)
564564
{
565565
int pathlen = strlen(pathname);
566566
int st;

dir.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ extern int read_directory(struct dir_struct *, const char *path, int len, const
7878

7979
extern int excluded_from_list(const char *pathname, int pathlen, const char *basename,
8080
int *dtype, struct exclude_list *el);
81-
extern int excluded(struct dir_struct *, const char *, int *);
8281
struct dir_entry *dir_add_ignored(struct dir_struct *dir, const char *pathname, int len);
8382

8483
/*

0 commit comments

Comments
 (0)