summaryrefslogtreecommitdiff
path: root/bisect.c
diff options
context:
space:
mode:
Diffstat (limited to 'bisect.c')
-rw-r--r--bisect.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/bisect.c b/bisect.c
index 10f5e57ef3..0848d91469 100644
--- a/bisect.c
+++ b/bisect.c
@@ -417,7 +417,10 @@ static int register_ref(const char *refname, const unsigned char *sha1,
static int read_bisect_refs(void)
{
- return for_each_ref_in("refs/bisect/", register_ref, NULL);
+ struct each_ref_fn_sha1_adapter wrapped_register_ref =
+ {register_ref, NULL};
+
+ return for_each_ref_in("refs/bisect/", each_ref_fn_adapter, &wrapped_register_ref);
}
static void read_bisect_paths(struct argv_array *array)