Commit Diff


commit - cc2a8ef4d11a18e731acc4e3af92748ead29505b
commit + b4f3757062b79ae08d3c386051bbf6c37902ec35
blob - 8ba2e5dff14da3efda11c6efbcaa5ba9f743c2b3
blob + 2742e41a8f1213be14ec02c12f202e7000fdf08b
--- lib/got_lib_pack.h
+++ lib/got_lib_pack.h
@@ -24,7 +24,6 @@ struct got_pack {
 	struct got_delta_cache *delta_cache;
 };
 
-const struct got_error *got_pack_stop_privsep_child(struct got_pack *);
 const struct got_error *got_pack_close(struct got_pack *);
 
 const struct got_error *got_pack_parse_offset_delta(off_t *, size_t *,
blob - 0024c0e344fac3cebf54131e19224a4936a9630a
blob + 2419035a2533dcaed1ae6f540cc4d946ca3e4202
--- lib/pack.c
+++ lib/pack.c
@@ -538,8 +538,8 @@ got_packidx_match_id_str_prefix(struct got_object_id_q
 	return err;
 }
 
-const struct got_error *
-got_pack_stop_privsep_child(struct got_pack *pack)
+static const struct got_error *
+pack_stop_privsep_child(struct got_pack *pack)
 {
 	const struct got_error *err = NULL;
 
@@ -564,7 +564,7 @@ got_pack_close(struct got_pack *pack)
 {
 	const struct got_error *err = NULL;
 
-	err = got_pack_stop_privsep_child(pack);
+	err = pack_stop_privsep_child(pack);
 	if (pack->map && munmap(pack->map, pack->filesize) == -1 && !err)
 		err = got_error_from_errno("munmap");
 	if (pack->fd != -1 && close(pack->fd) == -1 && err == NULL)