summaryrefslogtreecommitdiff
path: root/tests/t04-commit.c
diff options
context:
space:
mode:
authorKirill A. Shutemov <kirill@shutemov.name>2011-08-30 23:55:22 +0300
committerKirill A. Shutemov <kirill@shutemov.name>2011-08-30 23:55:22 +0300
commitd568d5856bcc4f283ae1dda0e27d680ee22fb067 (patch)
treeaf00ec95f08de8425111d3f57474b6ad63f826b1 /tests/t04-commit.c
parent51d0044629d0ac3e0f419910996c972b547f1156 (diff)
downloadlibgit2-d568d5856bcc4f283ae1dda0e27d680ee22fb067.tar.gz
CMakefile: add -Wmissing-prototypes and fix warnings
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Diffstat (limited to 'tests/t04-commit.c')
-rw-r--r--tests/t04-commit.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/t04-commit.c b/tests/t04-commit.c
index a8617ed6a..88c7efd81 100644
--- a/tests/t04-commit.c
+++ b/tests/t04-commit.c
@@ -498,9 +498,6 @@ BEGIN_TEST(signature4, "creating a zero character signature")
END_TEST
-/* External declaration for testing the buffer parsing method */
-int commit_parse_buffer(git_commit *commit, void *data, size_t len);
-
BEGIN_TEST(parse2, "parse a whole commit buffer")
const int broken_commit_count = sizeof(test_commits_broken) / sizeof(*test_commits_broken);
const int working_commit_count = sizeof(test_commits_working) / sizeof(*test_commits_working);
@@ -516,7 +513,7 @@ BEGIN_TEST(parse2, "parse a whole commit buffer")
memset(commit, 0x0, sizeof(git_commit));
commit->object.repo = repo;
- must_fail(commit_parse_buffer(
+ must_fail(git_commit__parse_buffer(
commit,
test_commits_broken[i],
strlen(test_commits_broken[i]))
@@ -532,7 +529,7 @@ BEGIN_TEST(parse2, "parse a whole commit buffer")
memset(commit, 0x0, sizeof(git_commit));
commit->object.repo = repo;
- must_pass(commit_parse_buffer(
+ must_pass(git_commit__parse_buffer(
commit,
test_commits_working[i],
strlen(test_commits_working[i]))
@@ -544,7 +541,7 @@ BEGIN_TEST(parse2, "parse a whole commit buffer")
memset(commit, 0x0, sizeof(git_commit));
commit->object.repo = repo;
- must_pass(commit_parse_buffer(
+ must_pass(git_commit__parse_buffer(
commit,
test_commits_working[i],
strlen(test_commits_working[i]))