summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
authorNanako Shiraishi <nanako3@lavabit.com>2008-10-02 19:14:23 +0900
committerShawn O. Pearce <spearce@spearce.org>2008-10-02 17:46:09 -0700
commit159b3212705f0f98c79a5565c0f9eff07234c1c7 (patch)
tree997095ac268b9474f0594b949188deea5134ada6 /dir.c
parenta476142fe78d4c9b33f07abf3a80bb52f92660b7 (diff)
downloadgit-159b3212705f0f98c79a5565c0f9eff07234c1c7.tar.gz
dir.c: make dir_add_name() and dir_add_ignored() static
These functions are not used by any other file. Signed-off-by: Nanako Shiraishi <nanako3@lavabit.com> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dir.c b/dir.c
index 1c3c501524..0131983dfb 100644
--- a/dir.c
+++ b/dir.c
@@ -382,7 +382,7 @@ static struct dir_entry *dir_entry_new(const char *pathname, int len)
return ent;
}
-struct dir_entry *dir_add_name(struct dir_struct *dir, const char *pathname, int len)
+static struct dir_entry *dir_add_name(struct dir_struct *dir, const char *pathname, int len)
{
if (cache_name_exists(pathname, len, ignore_case))
return NULL;
@@ -391,7 +391,7 @@ struct dir_entry *dir_add_name(struct dir_struct *dir, const char *pathname, int
return dir->entries[dir->nr++] = dir_entry_new(pathname, len);
}
-struct dir_entry *dir_add_ignored(struct dir_struct *dir, const char *pathname, int len)
+static struct dir_entry *dir_add_ignored(struct dir_struct *dir, const char *pathname, int len)
{
if (cache_name_pos(pathname, len) >= 0)
return NULL;