From 2e76b5fc84b7aa3877ef6b8251b7ba15eac1b2de Mon Sep 17 00:00:00 2001 From: Ben Straub Date: Tue, 27 Nov 2012 09:49:16 -0800 Subject: API updates for odb.h --- src/odb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/odb.c') diff --git a/src/odb.c b/src/odb.c index 9c602d1d2..e622eb076 100644 --- a/src/odb.c +++ b/src/odb.c @@ -683,14 +683,14 @@ int git_odb_read_prefix( return 0; } -int git_odb_foreach(git_odb *db, int (*cb)(git_oid *oid, void *data), void *data) +int git_odb_foreach(git_odb *db, git_odb_foreach_cb cb, void *payload) { unsigned int i; backend_internal *internal; git_vector_foreach(&db->backends, i, internal) { git_odb_backend *b = internal->backend; - int error = b->foreach(b, cb, data); + int error = b->foreach(b, cb, payload); if (error < 0) return error; } -- cgit v1.2.1