diff options
Diffstat (limited to 'tests-clar/notes/notes.c')
-rw-r--r-- | tests-clar/notes/notes.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests-clar/notes/notes.c b/tests-clar/notes/notes.c index 9c50f1acb..5185f25ea 100644 --- a/tests-clar/notes/notes.c +++ b/tests-clar/notes/notes.c @@ -68,7 +68,7 @@ static struct { #define EXPECTATIONS_COUNT (sizeof(list_expectations)/sizeof(list_expectations[0])) - 1 -static int note_list_cb(const git_oid *note_oid, const git_oid *annotated_object_oid, void *payload) +static int note_list_cb(git_note_data *note_data, void *payload) { git_oid expected_note_oid, expected_target_oid; @@ -77,10 +77,10 @@ static int note_list_cb(const git_oid *note_oid, const git_oid *annotated_object cl_assert(*count < EXPECTATIONS_COUNT); cl_git_pass(git_oid_fromstr(&expected_note_oid, list_expectations[*count].note_sha)); - cl_assert(git_oid_cmp(&expected_note_oid, note_oid) == 0); + cl_assert(git_oid_cmp(&expected_note_oid, ¬e_data->blob_oid) == 0); cl_git_pass(git_oid_fromstr(&expected_target_oid, list_expectations[*count].annotated_object_sha)); - cl_assert(git_oid_cmp(&expected_target_oid, annotated_object_oid) == 0); + cl_assert(git_oid_cmp(&expected_target_oid, ¬e_data->annotated_object_oid) == 0); (*count)++; |