From: Junio C Hamano Date: Wed, 6 Jun 2012 05:26:12 +0000 (-0700) Subject: dir.c: make excluded() file scope static X-Git-Tag: v1.7.11.2~12^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0d316f0ceff1c416c25327f40bc5fbdded98a01a;p=git.git 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 --- diff --git a/dir.c b/dir.c index 7ab7fc5c2..79e43377a 100644 --- a/dir.c +++ b/dir.c @@ -560,7 +560,7 @@ int excluded_from_list(const char *pathname, return -1; /* undecided */ } -int excluded(struct dir_struct *dir, const char *pathname, int *dtype_p) +static int excluded(struct dir_struct *dir, const char *pathname, int *dtype_p) { int pathlen = strlen(pathname); int st; diff --git a/dir.h b/dir.h index 36a82b3bd..1a88a7564 100644 --- a/dir.h +++ b/dir.h @@ -78,7 +78,6 @@ extern int read_directory(struct dir_struct *, const char *path, int len, const extern int excluded_from_list(const char *pathname, int pathlen, const char *basename, int *dtype, struct exclude_list *el); -extern int excluded(struct dir_struct *, const char *, int *); struct dir_entry *dir_add_ignored(struct dir_struct *dir, const char *pathname, int len); /*