aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-07-24 23:17:26 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-08-04 16:22:19 -0700
commitf756dcbf9439193897caeded81490f3f80a86c2f (patch)
tree306f949ef77a2f485d9e67f89f8b667139938264
parent99b51063812b409b031592ae771016d415755a3f (diff)
downloadsubsurface-f756dcbf9439193897caeded81490f3f80a86c2f.tar.gz
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 <bstoeger@mail.tuwien.ac.at>
-rw-r--r--core/load-git.c6
1 files changed, 3 insertions, 3 deletions
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;