diff options
author | nulltoken <emeric.fermas@gmail.com> | 2012-05-16 21:21:24 +0200 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2012-05-16 21:51:45 +0200 |
commit | ee7680d53b7328020576813914ac739b66bb8f8d (patch) | |
tree | 4c8b7d51cc184226150f22c17a67137bcfaeafd0 /tests-clar/notes/notes.c | |
parent | 9d0011fd83ff38561e75667451d2b6a55320d7d4 (diff) | |
download | libgit2-ee7680d53b7328020576813914ac739b66bb8f8d.tar.gz |
notes: make git_note_foreach() callback signature easier to cope with from a binding perspective
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)++; |