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 <gitster@pobox.com>

Junio C Hamano committed Jun 5, 2012 at 22:26 UTC 0d316f0ceff1c416c25327f40bc5fbdded98a01a
2 files changed +1 -2
dir.c
+1 -1
@@ -560,7 +560,7 @@ int excluded_from_list(const char *pathname,
560 return -1; /* undecided */
561 }
562
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)
564 {
565 int pathlen = strlen(pathname);
566 int st;
dir.h
-1
@@ -78,7 +78,6 @@ extern int read_directory(struct dir_struct *, const char *path, int len, const
78
79 extern int excluded_from_list(const char *pathname, int pathlen, const char *basename,
80 int *dtype, struct exclude_list *el);
81 -extern int excluded(struct dir_struct *, const char *, int *);
81 struct dir_entry *dir_add_ignored(struct dir_struct *dir, const char *pathname, int len);
82
83 /*