From f756dcbf9439193897caeded81490f3f80a86c2f Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Wed, 24 Jul 2019 23:17:26 +0200 Subject: Cleanup: make functions in core/load-git.c local The function get_divemode() and git_tree_entry_blob() were not used outside of load-git.c. Make them of static linkage. Signed-off-by: Berthold Stoeger --- core/load-git.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core') diff --git a/core/load-git.c b/core/load-git.c index b23204b79..e7bee5feb 100644 --- a/core/load-git.c +++ b/core/load-git.c @@ -32,7 +32,7 @@ struct keyword_action { }; #define ARRAY_SIZE(array) (sizeof(array)/sizeof(array[0])) -git_blob *git_tree_entry_blob(git_repository *repo, const git_tree_entry *entry); +static git_blob *git_tree_entry_blob(git_repository *repo, const git_tree_entry *entry); static char *get_utf8(struct membuffer *b) { @@ -704,7 +704,7 @@ static void parse_dc_watertemp(char *line, struct membuffer *str, void *_dc) { UNUSED(str); struct divecomputer *dc = _dc; dc->watertemp = get_temperature(line); } -int get_divemode(const char *divemodestring) { +static int get_divemode(const char *divemodestring) { for (int i = 0; i < NUM_DIVEMODE; i++) { if (!strcmp(divemodestring, divemode_text[i])) return i; @@ -1440,7 +1440,7 @@ static int walk_tree_directory(const char *root, const git_tree_entry *entry) return dive_trip_directory(root, name); } -git_blob *git_tree_entry_blob(git_repository *repo, const git_tree_entry *entry) +static git_blob *git_tree_entry_blob(git_repository *repo, const git_tree_entry *entry) { const git_oid *id = git_tree_entry_id(entry); git_blob *blob; -- cgit v1.2.3-70-g09d2