Skip to content

Commit

Permalink
dir.c: make excluded() file scope static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
gitster committed Jun 6, 2012
1 parent 589570d commit 0d316f0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion dir.c
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion dir.h
Expand Up @@ -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);

/*
Expand Down

0 comments on commit 0d316f0

Please sign in to comment.