Commit 8a88701ef4e1eba392781673f5d2d37a6c4b3dfd

Patrick Steinhardt 2019-09-26T13:37:18

config_entries: mark local functions as static Some functions which are only used in "config_entries.c" are not marked as static, which is being fixed by this very commit.

diff --git a/src/config_entries.c b/src/config_entries.c
index 2eb9e66..4a24006 100644
--- a/src/config_entries.c
+++ b/src/config_entries.c
@@ -180,7 +180,7 @@ int git_config_entries_append(git_config_entries *entries, git_config_entry *ent
 	return error;
 }
 
-int config_entry_get(config_entry_list **out, git_config_entries *entries, const char *key)
+static int config_entry_get(config_entry_list **out, git_config_entries *entries, const char *key)
 {
 	config_entry_list *list;
 
@@ -227,14 +227,14 @@ int git_config_entries_get_unique(git_config_entry **out, git_config_entries *en
 	return 0;
 }
 
-void config_iterator_free(git_config_iterator *iter)
+static void config_iterator_free(git_config_iterator *iter)
 {
 	config_entries_iterator *it = (config_entries_iterator *) iter;
 	git_config_entries_free(it->entries);
 	git__free(it);
 }
 
-int config_iterator_next(
+static int config_iterator_next(
 	git_config_entry **entry,
 	git_config_iterator *iter)
 {