summaryrefslogtreecommitdiff
path: root/tests-clar/notes/notes.c
diff options
context:
space:
mode:
authorNico von Geyso <Nico.Geyso@FU-Berlin.de>2013-03-06 19:07:56 +0100
committerNico von Geyso <Nico.Geyso@FU-Berlin.de>2013-03-06 19:07:56 +0100
commit1a90dcf64e561b21e0981a7d87d71e349fa37f69 (patch)
tree24526328de5b985b98bc36e4d54c55bd2579ebf5 /tests-clar/notes/notes.c
parent6edb427b7615207142e10a228164d6a019045126 (diff)
downloadlibgit2-1a90dcf64e561b21e0981a7d87d71e349fa37f69.tar.gz
use git_note_iterator type instead of non-public git_iterator one
Diffstat (limited to 'tests-clar/notes/notes.c')
-rw-r--r--tests-clar/notes/notes.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests-clar/notes/notes.c b/tests-clar/notes/notes.c
index ea810670f..b698648f7 100644
--- a/tests-clar/notes/notes.c
+++ b/tests-clar/notes/notes.c
@@ -322,7 +322,7 @@ void test_notes_notes__removing_a_note_which_doesnt_exists_returns_ENOTFOUND(voi
void test_notes_notes__can_iterate_default_namespace(void)
{
- git_iterator *iter;
+ git_note_iterator *iter;
git_note *note;
git_oid note_id, annotated_id;
git_oid note_created[2];
@@ -346,11 +346,12 @@ void test_notes_notes__can_iterate_default_namespace(void)
}
cl_assert(i == 2);
+ git_note_iterator_free(iter);
}
void test_notes_notes__can_iterate_custom_namespace(void)
{
- git_iterator *iter;
+ git_note_iterator *iter;
git_note *note;
git_oid note_id, annotated_id;
git_oid note_created[2];
@@ -374,11 +375,12 @@ void test_notes_notes__can_iterate_custom_namespace(void)
}
cl_assert(i == 2);
+ git_note_iterator_free(iter);
}
void test_notes_notes__empty_iterate(void)
{
- git_iterator *iter;
+ git_note_iterator *iter;
cl_git_fail(git_note_iterator_new(&iter, _repo, "refs/notes/commits"));
}