summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2016-01-16 02:29:17 +0100
committerCarlos Martín Nieto <cmn@dwim.me>2016-01-16 02:29:17 +0100
commit0f9d15493d5d8ad4353dd7beed52c9567334f6e5 (patch)
tree8840c81c7bcd8d5510e019bb899610a6ae23aebf
parent47cf739e97f3254e90d7399c86b38b0e086869a7 (diff)
parentb644e223aa04c49f7cc33fa1a4a26b2dbaf7aaf7 (diff)
downloadlibgit2-0f9d15493d5d8ad4353dd7beed52c9567334f6e5.tar.gz
Merge pull request #3573 from pmq20/master-12jan16
Make packfile_unpack_compressed a private API
-rw-r--r--src/pack.c4
-rw-r--r--src/pack.h7
2 files changed, 2 insertions, 9 deletions
diff --git a/src/pack.c b/src/pack.c
index 45dd4d5be..f6cb3a548 100644
--- a/src/pack.c
+++ b/src/pack.c
@@ -21,7 +21,7 @@ GIT__USE_OIDMAP
static int packfile_open(struct git_pack_file *p);
static git_off_t nth_packed_object_offset(const struct git_pack_file *p, uint32_t n);
-int packfile_unpack_compressed(
+static int packfile_unpack_compressed(
git_rawobj *obj,
struct git_pack_file *p,
git_mwindow **w_curs,
@@ -843,7 +843,7 @@ void git_packfile_stream_free(git_packfile_stream *obj)
inflateEnd(&obj->zstream);
}
-int packfile_unpack_compressed(
+static int packfile_unpack_compressed(
git_rawobj *obj,
struct git_pack_file *p,
git_mwindow **w_curs,
diff --git a/src/pack.h b/src/pack.h
index b3d5b2993..d15247b74 100644
--- a/src/pack.h
+++ b/src/pack.h
@@ -138,13 +138,6 @@ int git_packfile_resolve_header(
git_off_t offset);
int git_packfile_unpack(git_rawobj *obj, struct git_pack_file *p, git_off_t *obj_offset);
-int packfile_unpack_compressed(
- git_rawobj *obj,
- struct git_pack_file *p,
- git_mwindow **w_curs,
- git_off_t *curpos,
- size_t size,
- git_otype type);
int git_packfile_stream_open(git_packfile_stream *obj, struct git_pack_file *p, git_off_t curpos);
ssize_t git_packfile_stream_read(git_packfile_stream *obj, void *buffer, size_t len);