Commit Diff


commit - fda3525ecfaa5f1d603ab52254172b68ad177ed1
commit + 50127d69d134221cbcaa9ca3e173dceac051952c
blob - 8fdda11dc81d93858240483333f00089526064e5
blob + d6d774eb4f68ccae8f9320dd8cd3f8c7835c591d
--- libexec/got-read-pack/got-read-pack.c
+++ 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, 
 	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,