Commit 50127d69d134221cbcaa9ca3e173dceac051952c

Stefan Sperling 2021-09-25T10:24:15

add 'static' qualifier to local functions in got-read-pack; patch by Omar Polo

diff --git a/libexec/got-read-pack/got-read-pack.c b/libexec/got-read-pack/got-read-pack.c
index 8fdda11..d6d774e 100644
--- a/libexec/got-read-pack/got-read-pack.c
+++ b/libexec/got-read-pack/got-read-pack.c
@@ -106,7 +106,7 @@ done:
 	return err;
 }
 
-const struct got_error *
+static const struct got_error *
 open_commit(struct got_commit_object **commit, struct got_pack *pack,
     struct got_packidx *packidx, int obj_idx, struct got_object_id *id,
     struct got_object_cache *objcache)
@@ -175,7 +175,7 @@ done:
 	return err;
 }
 
-const struct got_error *
+static const struct got_error *
 open_tree(uint8_t **buf, struct got_pathlist_head *entries, int *nentries,
     struct got_pack *pack, struct got_packidx *packidx, int obj_idx,
     struct got_object_id *id, struct got_object_cache *objcache)
@@ -432,7 +432,7 @@ find_entry_by_name(struct got_pathlist_head *entries, int nentries,
 	return NULL;
 }
 
-const struct got_error *
+static const struct got_error *
 tree_path_changed(int *changed, uint8_t **buf1, uint8_t **buf2,
     struct got_pathlist_head *entries1, int *nentries1,
     struct got_pathlist_head *entries2, int *nentries2,