diff options
author | Russell Belfer <rb@github.com> | 2012-11-27 14:47:39 -0800 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2012-11-27 14:47:39 -0800 |
commit | 2bd5998c9cab0afdea2aba00ce35a70656ba9fda (patch) | |
tree | 64564d82a5fe3f6cbdc331efe6c5eaaf0f6e6e4c /tests-clar/notes/notes.c | |
parent | 336d1275ca53e7acc0b1b28986513a3061260a22 (diff) | |
download | libgit2-2bd5998c9cab0afdea2aba00ce35a70656ba9fda.tar.gz |
Remove git_note_data structure
Diffstat (limited to 'tests-clar/notes/notes.c')
-rw-r--r-- | tests-clar/notes/notes.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/tests-clar/notes/notes.c b/tests-clar/notes/notes.c index 706bc03ce..3f5194c51 100644 --- a/tests-clar/notes/notes.c +++ b/tests-clar/notes/notes.c @@ -50,7 +50,8 @@ static struct { #define EXPECTATIONS_COUNT (sizeof(list_expectations)/sizeof(list_expectations[0])) - 1 -static int note_list_cb(git_note_data *note_data, void *payload) +static int note_list_cb( + const git_oid *blob_id, const git_oid *annotated_obj_id, void *payload) { git_oid expected_note_oid, expected_target_oid; @@ -59,10 +60,10 @@ static int note_list_cb(git_note_data *note_data, void *payload) 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, ¬e_data->blob_oid) == 0); + cl_assert(git_oid_cmp(&expected_note_oid, blob_id) == 0); cl_git_pass(git_oid_fromstr(&expected_target_oid, list_expectations[*count].annotated_object_sha)); - cl_assert(git_oid_cmp(&expected_target_oid, ¬e_data->annotated_object_oid) == 0); + cl_assert(git_oid_cmp(&expected_target_oid, annotated_obj_id) == 0); (*count)++; @@ -103,11 +104,13 @@ void test_notes_notes__can_retrieve_a_list_of_notes_for_a_given_namespace(void) cl_assert_equal_i(4, retrieved_notes); } -static int note_cancel_cb(git_note_data *note_data, void *payload) +static int note_cancel_cb( + const git_oid *blob_id, const git_oid *annotated_obj_id, void *payload) { unsigned int *count = (unsigned int *)payload; - GIT_UNUSED(note_data); + GIT_UNUSED(blob_id); + GIT_UNUSED(annotated_obj_id); (*count)++; |