Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2012-11-28 03:00:49 +0400
committerRussell Belfer <rb@github.com>2012-11-28 03:00:49 +0400
commitc3fb7d04edecb68f0307dfaa48a311f0f72db90e (patch)
tree81e5424275d91ca002ef17aa5b1bc2c3fba2d07c /src/pack.c
parentf984d97b2208b48a6aec8877d0af357cca0c637d (diff)
Make git_odb_foreach_cb take const param
This makes the first OID param of the ODB callback a const pointer and also propogates that change all the way to the backends.
Diffstat (limited to 'src/pack.c')
-rw-r--r--src/pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pack.c b/src/pack.c
index a2a2fbcd1..6cb46d37b 100644
--- a/src/pack.c
+++ b/src/pack.c
@@ -698,7 +698,7 @@ static int git__memcmp4(const void *a, const void *b) {
int git_pack_foreach_entry(
struct git_pack_file *p,
- int (*cb)(git_oid *oid, void *data),
+ git_odb_foreach_cb cb,
void *data)
{
const unsigned char *index = p->index_map.data, *current;