vector: mark internal functions as static Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
diff --git a/src/index.c b/src/index.c
index 6f874d5..5079719 100644
--- a/src/index.c
+++ b/src/index.c
@@ -105,7 +105,7 @@ static int parse_index(git_index *index, const char *buffer, size_t buffer_size)
static int is_index_extended(git_index *index);
static int write_index(git_index *index, git_filebuf *file);
-int index_srch(const void *key, const void *array_member)
+static int index_srch(const void *key, const void *array_member)
{
const char *filename = (const char *)key;
const git_index_entry *entry = (const git_index_entry *)(array_member);
@@ -113,7 +113,7 @@ int index_srch(const void *key, const void *array_member)
return strcmp(filename, entry->path);
}
-int index_cmp(const void *a, const void *b)
+static int index_cmp(const void *a, const void *b)
{
const git_index_entry *entry_a = (const git_index_entry *)(a);
const git_index_entry *entry_b = (const git_index_entry *)(b);
@@ -121,7 +121,7 @@ int index_cmp(const void *a, const void *b)
return strcmp(entry_a->path, entry_b->path);
}
-int unmerged_srch(const void *key, const void *array_member)
+static int unmerged_srch(const void *key, const void *array_member)
{
const char *path = (const char *) key;
const git_index_entry_unmerged *entry = (const git_index_entry_unmerged *)(array_member);
@@ -129,7 +129,7 @@ int unmerged_srch(const void *key, const void *array_member)
return strcmp(path, entry->path);
}
-int unmerged_cmp(const void *a, const void *b)
+static int unmerged_cmp(const void *a, const void *b)
{
const git_index_entry_unmerged *info_a = (const git_index_entry_unmerged *)(a);
const git_index_entry_unmerged *info_b = (const git_index_entry_unmerged *)(b);
@@ -137,7 +137,7 @@ int unmerged_cmp(const void *a, const void *b)
return strcmp(info_a->path, info_b->path);
}
-unsigned int index_create_mode(unsigned int mode)
+static unsigned int index_create_mode(unsigned int mode)
{
if (S_ISLNK(mode))
return S_IFLNK;