summaryrefslogtreecommitdiff
path: root/src/odb_pack.c
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2012-11-27 15:00:49 -0800
committerRussell Belfer <rb@github.com>2012-11-27 15:00:49 -0800
commitc3fb7d04edecb68f0307dfaa48a311f0f72db90e (patch)
tree81e5424275d91ca002ef17aa5b1bc2c3fba2d07c /src/odb_pack.c
parentf984d97b2208b48a6aec8877d0af357cca0c637d (diff)
downloadlibgit2-c3fb7d04edecb68f0307dfaa48a311f0f72db90e.tar.gz
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/odb_pack.c')
-rw-r--r--src/odb_pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/odb_pack.c b/src/odb_pack.c
index 9f7a6ee1f..35bf1580d 100644
--- a/src/odb_pack.c
+++ b/src/odb_pack.c
@@ -458,7 +458,7 @@ static int pack_backend__exists(git_odb_backend *backend, const git_oid *oid)
return pack_entry_find(&e, (struct pack_backend *)backend, oid) == 0;
}
-static int pack_backend__foreach(git_odb_backend *_backend, int (*cb)(git_oid *oid, void *data), void *data)
+static int pack_backend__foreach(git_odb_backend *_backend, git_odb_foreach_cb cb, void *data)
{
int error;
struct git_pack_file *p;