Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2012-11-21 06:57:46 +0400
committerBen Straub <bs@github.com>2012-11-28 01:18:28 +0400
commitf45d51ff8e04c6849413c13aedcf5abacc3c69bd (patch)
treedab9495e4954677f12475d8335cd2ea9e752f24e /tests-clar/index/filemodes.c
parentd9023dbe0cb5d47e30d86149701b7be9006f7683 (diff)
API updates for index.h
Diffstat (limited to 'tests-clar/index/filemodes.c')
-rw-r--r--tests-clar/index/filemodes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests-clar/index/filemodes.c b/tests-clar/index/filemodes.c
index 882d41748..a2d5df605 100644
--- a/tests-clar/index/filemodes.c
+++ b/tests-clar/index/filemodes.c
@@ -25,7 +25,7 @@ void test_index_filemodes__read(void)
cl_assert_equal_i(6, git_index_entrycount(index));
for (i = 0; i < 6; ++i) {
- git_index_entry *entry = git_index_get_byindex(index, i);
+ const git_index_entry *entry = git_index_get_byindex(index, i);
cl_assert(entry != NULL);
cl_assert(((entry->mode & 0100) ? 1 : 0) == expected[i]);
}
@@ -54,7 +54,7 @@ static void add_and_check_mode(
git_index *index, const char *filename, unsigned int expect_mode)
{
int pos;
- git_index_entry *entry;
+ const git_index_entry *entry;
cl_git_pass(git_index_add_from_workdir(index, filename));